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

package com.azure.resourcemanager.avs.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkGatewayProperties;
import org.junit.jupiter.api.Assertions;

public final class WorkloadNetworkGatewayPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        WorkloadNetworkGatewayProperties model =
            BinaryData
                .fromString("{\"displayName\":\"xacqqudfnbyx\",\"path\":\"aabjyvayffimrz\"}")
                .toObject(WorkloadNetworkGatewayProperties.class);
        Assertions.assertEquals("xacqqudfnbyx", model.displayName());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        WorkloadNetworkGatewayProperties model = new WorkloadNetworkGatewayProperties().withDisplayName("xacqqudfnbyx");
        model = BinaryData.fromObject(model).toObject(WorkloadNetworkGatewayProperties.class);
        Assertions.assertEquals("xacqqudfnbyx", model.displayName());
    }
}
