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

package com.azure.resourcemanager.azurestack.generated;

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

public final class CloudManifestFileEnvironmentEndpointsTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        CloudManifestFileEnvironmentEndpoints model =
            BinaryData
                .fromString("{\"customCloudArmEndpoint\":\"pikxwczbyscnpqxu\",\"externalDsmsEndpoint\":\"vyq\"}")
                .toObject(CloudManifestFileEnvironmentEndpoints.class);
        Assertions.assertEquals("pikxwczbyscnpqxu", model.customCloudArmEndpoint());
        Assertions.assertEquals("vyq", model.externalDsmsEndpoint());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        CloudManifestFileEnvironmentEndpoints model =
            new CloudManifestFileEnvironmentEndpoints()
                .withCustomCloudArmEndpoint("pikxwczbyscnpqxu")
                .withExternalDsmsEndpoint("vyq");
        model = BinaryData.fromObject(model).toObject(CloudManifestFileEnvironmentEndpoints.class);
        Assertions.assertEquals("pikxwczbyscnpqxu", model.customCloudArmEndpoint());
        Assertions.assertEquals("vyq", model.externalDsmsEndpoint());
    }
}
