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

package com.azure.resourcemanager.managementgroups.generated;

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

public final class OperationListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        OperationListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"name\":\"yxoegukgjnp\",\"display\":{\"provider\":\"gygev\",\"resource\":\"ntypmrbpizcdrqj\",\"operation\":\"pyd\",\"description\":\"yhxdeoejzicwi\"}},{\"name\":\"jttgzf\",\"display\":{\"provider\":\"hcbkhajde\",\"resource\":\"a\",\"operation\":\"p\",\"description\":\"g\"}},{\"name\":\"pbuxwgipwhon\",\"display\":{\"provider\":\"gshwankixz\",\"resource\":\"njeputtmrywn\",\"operation\":\"oqftiyqzrnkcq\",\"description\":\"xlwhzlsicoh\"}}],\"nextLink\":\"qnwvlrya\"}")
                .toObject(OperationListResult.class);
    }

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