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

package com.azure.resourcemanager.hybridnetwork.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.hybridnetwork.fluent.models.SkuOverviewInner;
import com.azure.resourcemanager.hybridnetwork.models.SkuType;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class SkuOverviewInnerTests {
    @Test
    public void testDeserialize() {
        SkuOverviewInner model =
            BinaryData
                .fromString("{\"skuName\":\"khrs\",\"skuType\":\"EvolvedPacketCore\"}")
                .toObject(SkuOverviewInner.class);
        Assertions.assertEquals("khrs", model.skuName());
        Assertions.assertEquals(SkuType.EVOLVED_PACKET_CORE, model.skuType());
    }

    @Test
    public void testSerialize() {
        SkuOverviewInner model = new SkuOverviewInner().withSkuName("khrs").withSkuType(SkuType.EVOLVED_PACKET_CORE);
        model = BinaryData.fromObject(model).toObject(SkuOverviewInner.class);
        Assertions.assertEquals("khrs", model.skuName());
        Assertions.assertEquals(SkuType.EVOLVED_PACKET_CORE, model.skuType());
    }
}
