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

package com.azure.resourcemanager.machinelearning.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.machinelearning.models.FqdnEndpointDetail;
import org.junit.jupiter.api.Assertions;

public final class FqdnEndpointDetailTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        FqdnEndpointDetail model = BinaryData.fromString("{\"port\":1808760283}").toObject(FqdnEndpointDetail.class);
        Assertions.assertEquals(1808760283, model.port());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        FqdnEndpointDetail model = new FqdnEndpointDetail().withPort(1808760283);
        model = BinaryData.fromObject(model).toObject(FqdnEndpointDetail.class);
        Assertions.assertEquals(1808760283, model.port());
    }
}
