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

package com.azure.resourcemanager.managednetworkfabric.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.managednetworkfabric.fluent.models.NetworkFabricSkuInner;
import org.junit.jupiter.api.Assertions;

public final class NetworkFabricSkuInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        NetworkFabricSkuInner model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"type\":\"wwvaiqyuvvfonk\",\"maxComputeRacks\":1742382319,\"minSupportedVer\":\"yik\",\"maxSupportedVer\":\"lauyav\",\"detailsUri\":\"wmn\",\"provisioningState\":\"Failed\"},\"id\":\"ijf\",\"name\":\"bvpoekrsgsgbdhu\",\"type\":\"qgnjdgkynscli\"}")
                .toObject(NetworkFabricSkuInner.class);
        Assertions.assertEquals(1742382319, model.maxComputeRacks());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        NetworkFabricSkuInner model = new NetworkFabricSkuInner().withMaxComputeRacks(1742382319);
        model = BinaryData.fromObject(model).toObject(NetworkFabricSkuInner.class);
        Assertions.assertEquals(1742382319, model.maxComputeRacks());
    }
}
