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

package com.azure.resourcemanager.maps.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.maps.models.MapsOperations;
import org.junit.jupiter.api.Assertions;

public final class MapsOperationsTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MapsOperations model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"name\":\"zk\",\"isDataAction\":true,\"display\":{\"provider\":\"hanufhfcbjysagi\",\"resource\":\"xqhabi\",\"operation\":\"ikxwc\",\"description\":\"yscnpqxu\"},\"origin\":\"vyq\",\"properties\":{}},{\"name\":\"ybrk\",\"isDataAction\":true,\"display\":{\"provider\":\"jgrtfwvukxga\",\"resource\":\"ccsnhsjc\",\"operation\":\"ejhkry\",\"description\":\"napczwlokjy\"},\"origin\":\"kkvnipjox\",\"properties\":{}},{\"name\":\"hgejspodma\",\"isDataAction\":false,\"display\":{\"provider\":\"eho\",\"resource\":\"yahux\",\"operation\":\"pmqnja\",\"description\":\"ixjsprozvcputeg\"},\"origin\":\"wmfdatscmdvpjhul\",\"properties\":{}},{\"name\":\"mkjozkrwf\",\"isDataAction\":false,\"display\":{\"provider\":\"jpslwejd\",\"resource\":\"wryoqpsoacc\",\"operation\":\"zakljlahbc\",\"description\":\"ffdfdosygexpa\"},\"origin\":\"akhmsbzjhcrz\",\"properties\":{}}],\"nextLink\":\"hlxaolthqtr\"}")
                .toObject(MapsOperations.class);
        Assertions.assertEquals("hlxaolthqtr", model.nextLink());
    }

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