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

package com.azure.resourcemanager.managednetworkfabric.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.managednetworkfabric.models.OperationListResult;

public final class OperationListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        OperationListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"name\":\"nnust\",\"isDataAction\":true,\"display\":{\"provider\":\"nmgixh\",\"resource\":\"avmqfoudor\",\"operation\":\"gyyprotwy\",\"description\":\"ndm\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"},{\"name\":\"mjkavlgorbmft\",\"isDataAction\":true,\"display\":{\"provider\":\"fjltfvnzcyjtotp\",\"resource\":\"pvpbdbzqgqqiheds\",\"operation\":\"wthmkyib\",\"description\":\"sihsgqcwdhohsd\"},\"origin\":\"user\",\"actionType\":\"Internal\"}],\"nextLink\":\"ufcohdxbz\"}")
                .toObject(OperationListResult.class);
    }

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