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

public final class PngLayerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        PngLayer model =
            BinaryData
                .fromString("{\"width\":\"imlnwiaaomylw\",\"height\":\"z\",\"label\":\"cse\"}")
                .toObject(PngLayer.class);
        Assertions.assertEquals("imlnwiaaomylw", model.width());
        Assertions.assertEquals("z", model.height());
        Assertions.assertEquals("cse", model.label());
    }

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