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

package com.azure.resourcemanager.databox.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.databox.models.OperationList;
import org.junit.jupiter.api.Assertions;

public final class OperationListTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        OperationList model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"name\":\"quvgjxpybczme\",\"display\":{\"provider\":\"zopbsphrupidgs\",\"resource\":\"bejhphoycmsxa\",\"operation\":\"hdxbmtqio\",\"description\":\"zehtbmu\"},\"properties\":\"dataownoizhw\",\"origin\":\"xybqsoqij\",\"isDataAction\":true},{\"name\":\"bpazlobcufpdzn\",\"display\":{\"provider\":\"cqqjnqglhqgn\",\"resource\":\"ooojywifsqe\",\"operation\":\"agdfmglzlh\",\"description\":\"rifkwm\"},\"properties\":\"dataktsizntocipaou\",\"origin\":\"psqucmpoyf\",\"isDataAction\":true},{\"name\":\"gknygjofjddeqs\",\"display\":{\"provider\":\"upewnwreitjzy\",\"resource\":\"usarhmofc\",\"operation\":\"smy\",\"description\":\"kdtmlxhekuk\"},\"properties\":\"datatxukcdmp\",\"origin\":\"cryuan\",\"isDataAction\":false}],\"nextLink\":\"zdxtayrlhmwhf\"}")
                .toObject(OperationList.class);
        Assertions.assertEquals("zdxtayrlhmwhf", model.nextLink());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        OperationList model = new OperationList().withNextLink("zdxtayrlhmwhf");
        model = BinaryData.fromObject(model).toObject(OperationList.class);
        Assertions.assertEquals("zdxtayrlhmwhf", model.nextLink());
    }
}
