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

package com.azure.resourcemanager.security.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.security.models.ProxyServerProperties;
import org.junit.jupiter.api.Assertions;

public final class ProxyServerPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ProxyServerProperties model =
            BinaryData.fromString("{\"ip\":\"lobdxna\",\"port\":\"mkmlmvevfx\"}").toObject(ProxyServerProperties.class);
        Assertions.assertEquals("lobdxna", model.ip());
        Assertions.assertEquals("mkmlmvevfx", model.port());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ProxyServerProperties model = new ProxyServerProperties().withIp("lobdxna").withPort("mkmlmvevfx");
        model = BinaryData.fromObject(model).toObject(ProxyServerProperties.class);
        Assertions.assertEquals("lobdxna", model.ip());
        Assertions.assertEquals("mkmlmvevfx", model.port());
    }
}
