// 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.AvailableSkusResult;
import org.junit.jupiter.api.Assertions;

public final class AvailableSkusResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AvailableSkusResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"sku\":{\"name\":\"DataBox\",\"displayName\":\"p\",\"family\":\"g\"},\"enabled\":true,\"properties\":{\"dataLocationToServiceLocationMap\":[],\"costs\":[],\"apiVersions\":[],\"disabledReason\":\"Region\",\"disabledReasonMessage\":\"honowkgshwank\",\"requiredFeature\":\"zbinjeputtm\",\"countriesWithinCommerceBoundary\":[]}},{\"sku\":{\"name\":\"DataBox\",\"displayName\":\"zoqftiyqzrnkcqvy\",\"family\":\"whzlsicohoq\"},\"enabled\":false,\"properties\":{\"dataLocationToServiceLocationMap\":[],\"costs\":[],\"apiVersions\":[],\"disabledReason\":\"NoSubscriptionInfo\",\"disabledReasonMessage\":\"heun\",\"requiredFeature\":\"qhgyxzkonocukok\",\"countriesWithinCommerceBoundary\":[]}}],\"nextLink\":\"xuconu\"}")
                .toObject(AvailableSkusResult.class);
        Assertions.assertEquals("xuconu", model.nextLink());
    }

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