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

package com.azure.resourcemanager.datamigration.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.datamigration.models.AvailableServiceSkuSku;
import org.junit.jupiter.api.Assertions;

public final class AvailableServiceSkuSkuTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AvailableServiceSkuSku model =
            BinaryData
                .fromString(
                    "{\"name\":\"duqkt\",\"family\":\"spwgcuertumkdosv\",\"size\":\"hbmdgbbjfdd\",\"tier\":\"bmbexppbhtqqro\"}")
                .toObject(AvailableServiceSkuSku.class);
        Assertions.assertEquals("duqkt", model.name());
        Assertions.assertEquals("spwgcuertumkdosv", model.family());
        Assertions.assertEquals("hbmdgbbjfdd", model.size());
        Assertions.assertEquals("bmbexppbhtqqro", model.tier());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        AvailableServiceSkuSku model =
            new AvailableServiceSkuSku()
                .withName("duqkt")
                .withFamily("spwgcuertumkdosv")
                .withSize("hbmdgbbjfdd")
                .withTier("bmbexppbhtqqro");
        model = BinaryData.fromObject(model).toObject(AvailableServiceSkuSku.class);
        Assertions.assertEquals("duqkt", model.name());
        Assertions.assertEquals("spwgcuertumkdosv", model.family());
        Assertions.assertEquals("hbmdgbbjfdd", model.size());
        Assertions.assertEquals("bmbexppbhtqqro", model.tier());
    }
}
