// 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.Codec;
import org.junit.jupiter.api.Assertions;

public final class CodecTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        Codec model = BinaryData.fromString("{\"@odata.type\":\"Codec\",\"label\":\"lvxwmyg\"}").toObject(Codec.class);
        Assertions.assertEquals("lvxwmyg", model.label());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        Codec model = new Codec().withLabel("lvxwmyg");
        model = BinaryData.fromObject(model).toObject(Codec.class);
        Assertions.assertEquals("lvxwmyg", model.label());
    }
}
