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

package com.azure.resourcemanager.mariadb.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.mariadb.fluent.models.OperationListResultInner;
import com.azure.resourcemanager.mariadb.models.Operation;
import java.util.Arrays;

public final class OperationListResultInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        OperationListResultInner model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"name\":\"sonpclhocohs\",\"display\":{\"provider\":\"vleggzfbuhfmvfax\",\"resource\":\"feiithlvmez\",\"operation\":\"shxmzsbbzoggigrx\",\"description\":\"ur\"},\"origin\":\"user\",\"properties\":{\"udwtiukbl\":\"datanspydptkoenkoukn\",\"o\":\"datangkpocipazy\"}}]}")
                .toObject(OperationListResultInner.class);
    }

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