// 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.WorkloadNetworkSegmentsList;

public final class WorkloadNetworkSegmentsListTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        WorkloadNetworkSegmentsList model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"displayName\":\"vlxotogtwrupqsx\",\"connectedGateway\":\"micykvceoveilo\",\"portVif\":[],\"status\":\"FAILURE\",\"provisioningState\":\"Failed\",\"revision\":4491439225933409580},\"id\":\"jbkcnxdhbttkph\",\"name\":\"wpn\",\"type\":\"jtoqne\"},{\"properties\":{\"displayName\":\"lfplp\",\"connectedGateway\":\"xus\",\"portVif\":[],\"status\":\"SUCCESS\",\"provisioningState\":\"Updating\",\"revision\":6796703751467974651},\"id\":\"bjtazqugxywpmu\",\"name\":\"ef\",\"type\":\"zwfqkqujidsuyon\"},{\"properties\":{\"displayName\":\"laocqxtccmg\",\"connectedGateway\":\"dxyt\",\"portVif\":[],\"status\":\"SUCCESS\",\"provisioningState\":\"Deleting\",\"revision\":9152024250663489455},\"id\":\"dw\",\"name\":\"zntxhdz\",\"type\":\"lrqjbhckfr\"}],\"nextLink\":\"rxsbkyvp\"}")
                .toObject(WorkloadNetworkSegmentsList.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        WorkloadNetworkSegmentsList model = new WorkloadNetworkSegmentsList();
        model = BinaryData.fromObject(model).toObject(WorkloadNetworkSegmentsList.class);
    }
}
