// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.mediaservices.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.mediaservices.models.LiveEventInputTrackSelection;
import org.junit.jupiter.api.Assertions;

public final class LiveEventInputTrackSelectionTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        LiveEventInputTrackSelection model =
            BinaryData
                .fromString("{\"property\":\"eaivxwczel\",\"operation\":\"irels\",\"value\":\"aenwabf\"}")
                .toObject(LiveEventInputTrackSelection.class);
        Assertions.assertEquals("eaivxwczel", model.property());
        Assertions.assertEquals("irels", model.operation());
        Assertions.assertEquals("aenwabf", model.value());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        LiveEventInputTrackSelection model =
            new LiveEventInputTrackSelection().withProperty("eaivxwczel").withOperation("irels").withValue("aenwabf");
        model = BinaryData.fromObject(model).toObject(LiveEventInputTrackSelection.class);
        Assertions.assertEquals("eaivxwczel", model.property());
        Assertions.assertEquals("irels", model.operation());
        Assertions.assertEquals("aenwabf", model.value());
    }
}
