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

package com.azure.resourcemanager.hybridcontainerservice.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.hybridcontainerservice.models.ControlPlaneEndpointProfileControlPlaneEndpoint;
import org.junit.jupiter.api.Assertions;

public final class ControlPlaneEndpointProfileControlPlaneEndpointTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ControlPlaneEndpointProfileControlPlaneEndpoint model =
            BinaryData
                .fromString("{\"hostIP\":\"ghmewuam\",\"port\":\"hrzayvvtpgvdf\"}")
                .toObject(ControlPlaneEndpointProfileControlPlaneEndpoint.class);
        Assertions.assertEquals("ghmewuam", model.hostIp());
        Assertions.assertEquals("hrzayvvtpgvdf", model.port());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ControlPlaneEndpointProfileControlPlaneEndpoint model =
            new ControlPlaneEndpointProfileControlPlaneEndpoint().withHostIp("ghmewuam").withPort("hrzayvvtpgvdf");
        model = BinaryData.fromObject(model).toObject(ControlPlaneEndpointProfileControlPlaneEndpoint.class);
        Assertions.assertEquals("ghmewuam", model.hostIp());
        Assertions.assertEquals("hrzayvvtpgvdf", model.port());
    }
}
