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

public final class WorkloadNetworkSegmentPortVifTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        WorkloadNetworkSegmentPortVif model =
            BinaryData.fromString("{\"portName\":\"mpowuwpr\"}").toObject(WorkloadNetworkSegmentPortVif.class);
        Assertions.assertEquals("mpowuwpr", model.portName());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        WorkloadNetworkSegmentPortVif model = new WorkloadNetworkSegmentPortVif().withPortName("mpowuwpr");
        model = BinaryData.fromObject(model).toObject(WorkloadNetworkSegmentPortVif.class);
        Assertions.assertEquals("mpowuwpr", model.portName());
    }
}
