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

package com.azure.resourcemanager.azurestack.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.azurestack.models.IconUris;
import org.junit.jupiter.api.Assertions;

public final class IconUrisTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        IconUris model =
            BinaryData
                .fromString(
                    "{\"large\":\"nlebxetqgtzxd\",\"wide\":\"qbqqwxr\",\"medium\":\"eallnwsubisnj\",\"small\":\"pmng\",\"hero\":\"scxaq\"}")
                .toObject(IconUris.class);
        Assertions.assertEquals("nlebxetqgtzxd", model.large());
        Assertions.assertEquals("qbqqwxr", model.wide());
        Assertions.assertEquals("eallnwsubisnj", model.medium());
        Assertions.assertEquals("pmng", model.small());
        Assertions.assertEquals("scxaq", model.hero());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        IconUris model =
            new IconUris()
                .withLarge("nlebxetqgtzxd")
                .withWide("qbqqwxr")
                .withMedium("eallnwsubisnj")
                .withSmall("pmng")
                .withHero("scxaq");
        model = BinaryData.fromObject(model).toObject(IconUris.class);
        Assertions.assertEquals("nlebxetqgtzxd", model.large());
        Assertions.assertEquals("qbqqwxr", model.wide());
        Assertions.assertEquals("eallnwsubisnj", model.medium());
        Assertions.assertEquals("pmng", model.small());
        Assertions.assertEquals("scxaq", model.hero());
    }
}
