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

package com.azure.resourcemanager.loadtesting.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.loadtesting.fluent.models.OutboundEnvironmentEndpointInner;
import org.junit.jupiter.api.Test;

public final class OutboundEnvironmentEndpointInnerTests {
    @Test
    public void testDeserialize() throws Exception {
        OutboundEnvironmentEndpointInner model =
            BinaryData
                .fromString(
                    "{\"category\":\"wmdwzjeiachboo\",\"endpoints\":[{\"domainName\":\"ro\",\"description\":\"qpteeh\",\"endpointDetails\":[]},{\"domainName\":\"pyqr\",\"description\":\"z\",\"endpointDetails\":[]}]}")
                .toObject(OutboundEnvironmentEndpointInner.class);
    }

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