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

package com.azure.resourcemanager.vmwarecloudsimple.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.vmwarecloudsimple.models.Sku;
import org.junit.jupiter.api.Assertions;

public final class SkuTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        Sku model =
            BinaryData
                .fromString(
                    "{\"capacity\":\"lnrosfqp\",\"description\":\"ehzzvypyqrim\",\"family\":\"npvswjdkirso\",\"name\":\"dqxhcrmnohjtckwh\",\"tier\":\"oifiyipjxsqwpgr\"}")
                .toObject(Sku.class);
        Assertions.assertEquals("lnrosfqp", model.capacity());
        Assertions.assertEquals("ehzzvypyqrim", model.description());
        Assertions.assertEquals("npvswjdkirso", model.family());
        Assertions.assertEquals("dqxhcrmnohjtckwh", model.name());
        Assertions.assertEquals("oifiyipjxsqwpgr", model.tier());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        Sku model =
            new Sku()
                .withCapacity("lnrosfqp")
                .withDescription("ehzzvypyqrim")
                .withFamily("npvswjdkirso")
                .withName("dqxhcrmnohjtckwh")
                .withTier("oifiyipjxsqwpgr");
        model = BinaryData.fromObject(model).toObject(Sku.class);
        Assertions.assertEquals("lnrosfqp", model.capacity());
        Assertions.assertEquals("ehzzvypyqrim", model.description());
        Assertions.assertEquals("npvswjdkirso", model.family());
        Assertions.assertEquals("dqxhcrmnohjtckwh", model.name());
        Assertions.assertEquals("oifiyipjxsqwpgr", model.tier());
    }
}
