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

package com.azure.resourcemanager.baremetalinfrastructure.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.baremetalinfrastructure.fluent.models.OperationInner;
import com.azure.resourcemanager.baremetalinfrastructure.models.Display;
import com.azure.resourcemanager.baremetalinfrastructure.models.OperationList;
import java.util.Arrays;

public final class OperationListTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        OperationList model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"name\":\"gqjbpfzfsin\",\"display\":{\"provider\":\"f\",\"resource\":\"rwzoxxjtfelluwf\",\"operation\":\"tonpe\",\"description\":\"pjkjlxofpdv\"},\"isDataAction\":true}]}")
                .toObject(OperationList.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        OperationList model =
            new OperationList().withValue(Arrays.asList(new OperationInner().withDisplay(new Display())));
        model = BinaryData.fromObject(model).toObject(OperationList.class);
    }
}
