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

public final class LayerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        Layer model =
            BinaryData
                .fromString("{\"width\":\"ktalywjhhgdnhxms\",\"height\":\"fomiloxgg\",\"label\":\"fi\"}")
                .toObject(Layer.class);
        Assertions.assertEquals("ktalywjhhgdnhxms", model.width());
        Assertions.assertEquals("fomiloxgg", model.height());
        Assertions.assertEquals("fi", model.label());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        Layer model = new Layer().withWidth("ktalywjhhgdnhxms").withHeight("fomiloxgg").withLabel("fi");
        model = BinaryData.fromObject(model).toObject(Layer.class);
        Assertions.assertEquals("ktalywjhhgdnhxms", model.width());
        Assertions.assertEquals("fomiloxgg", model.height());
        Assertions.assertEquals("fi", model.label());
    }
}
