// 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.DefenderForServersAwsOfferingArcAutoProvisioningConfiguration;
import org.junit.jupiter.api.Assertions;

public final class DefenderForServersAwsOfferingArcAutoProvisioningConfigurationTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DefenderForServersAwsOfferingArcAutoProvisioningConfiguration model =
            BinaryData
                .fromString("{\"proxy\":\"loozrvt\",\"privateLinkScope\":\"cmufunlcpxxv\"}")
                .toObject(DefenderForServersAwsOfferingArcAutoProvisioningConfiguration.class);
        Assertions.assertEquals("loozrvt", model.proxy());
        Assertions.assertEquals("cmufunlcpxxv", model.privateLinkScope());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        DefenderForServersAwsOfferingArcAutoProvisioningConfiguration model =
            new DefenderForServersAwsOfferingArcAutoProvisioningConfiguration()
                .withProxy("loozrvt")
                .withPrivateLinkScope("cmufunlcpxxv");
        model =
            BinaryData.fromObject(model).toObject(DefenderForServersAwsOfferingArcAutoProvisioningConfiguration.class);
        Assertions.assertEquals("loozrvt", model.proxy());
        Assertions.assertEquals("cmufunlcpxxv", model.privateLinkScope());
    }
}
