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

package com.azure.resourcemanager.storagecache.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.storagecache.models.ResourceSkusResult;
import org.junit.jupiter.api.Assertions;

public final class ResourceSkusResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ResourceSkusResult model =
            BinaryData
                .fromString(
                    "{\"nextLink\":\"i\",\"value\":[{\"resourceType\":\"dcsi\",\"capabilities\":[],\"locations\":[\"amdecte\",\"f\"],\"locationInfo\":[],\"name\":\"jeyp\",\"restrictions\":[]},{\"resourceType\":\"rkgqhcjrefo\",\"capabilities\":[],\"locations\":[\"sle\"],\"locationInfo\":[],\"name\":\"yqjpkcatt\",\"restrictions\":[]},{\"resourceType\":\"cr\",\"capabilities\":[],\"locations\":[\"pjhvmdajvnys\",\"unqecanoae\"],\"locationInfo\":[],\"name\":\"yhltrpmopjmcm\",\"restrictions\":[]}]}")
                .toObject(ResourceSkusResult.class);
        Assertions.assertEquals("i", model.nextLink());
    }

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