// 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.fluent.models.DedicatedCloudServiceProperties;
import org.junit.jupiter.api.Assertions;

public final class DedicatedCloudServicePropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DedicatedCloudServiceProperties model =
            BinaryData
                .fromString(
                    "{\"gatewaySubnet\":\"bkbfkgukdkex\",\"isAccountOnboarded\":\"notOnBoarded\",\"nodes\":922056801,\"serviceURL\":\"xaxcfjpgddtocjjx\"}")
                .toObject(DedicatedCloudServiceProperties.class);
        Assertions.assertEquals("bkbfkgukdkex", model.gatewaySubnet());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        DedicatedCloudServiceProperties model = new DedicatedCloudServiceProperties().withGatewaySubnet("bkbfkgukdkex");
        model = BinaryData.fromObject(model).toObject(DedicatedCloudServiceProperties.class);
        Assertions.assertEquals("bkbfkgukdkex", model.gatewaySubnet());
    }
}
