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

package com.azure.resourcemanager.batch.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.batch.fluent.models.OutboundEnvironmentEndpointInner;

public final class OutboundEnvironmentEndpointInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        OutboundEnvironmentEndpointInner model =
            BinaryData
                .fromString(
                    "{\"category\":\"df\",\"endpoints\":[{\"domainName\":\"ezkojvdcp\",\"description\":\"oqouicybxarzgszu\",\"endpointDetails\":[{\"port\":1319234884}]},{\"domainName\":\"opidoamciodh\",\"description\":\"azxkhnzbonlwnto\",\"endpointDetails\":[{\"port\":2078888236},{\"port\":542586349}]},{\"domainName\":\"hksz\",\"description\":\"mrv\",\"endpointDetails\":[{\"port\":1285484058},{\"port\":152154395},{\"port\":991988200}]}]}")
                .toObject(OutboundEnvironmentEndpointInner.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        OutboundEnvironmentEndpointInner model = new OutboundEnvironmentEndpointInner();
        model = BinaryData.fromObject(model).toObject(OutboundEnvironmentEndpointInner.class);
    }
}
