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

package com.azure.resourcemanager.iotfirmwaredefense.generated;

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

public final class OperationListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        OperationListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"name\":\"faxkffeii\",\"isDataAction\":true,\"display\":{\"provider\":\"ez\",\"resource\":\"shxmzsbbzoggigrx\",\"operation\":\"ur\",\"description\":\"xxjnspydptk\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"knvudwtiukb\",\"isDataAction\":true,\"display\":{\"provider\":\"pocipazyxoegu\",\"resource\":\"jnpiucgyg\",\"operation\":\"qzntypm\",\"description\":\"p\"},\"origin\":\"user\",\"actionType\":\"Internal\"},{\"name\":\"j\",\"isDataAction\":false,\"display\":{\"provider\":\"nfyhx\",\"resource\":\"oejzi\",\"operation\":\"ifsjttgzfbishcb\",\"description\":\"ajdeyeamdphaga\"},\"origin\":\"user\",\"actionType\":\"Internal\"},{\"name\":\"gipwhonowkg\",\"isDataAction\":true,\"display\":{\"provider\":\"kix\",\"resource\":\"injep\",\"operation\":\"tmryw\",\"description\":\"zoqftiyqzrnkcqvy\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}],\"nextLink\":\"sicohoqqnwvlry\"}")
                .toObject(OperationListResult.class);
    }

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