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

public final class MapsAccountsTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MapsAccounts model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"sku\":{\"name\":\"G2\",\"tier\":\"zyf\"},\"kind\":\"Gen1\",\"properties\":{\"uniqueId\":\"mofcq\",\"disableLocalAuth\":false,\"provisioningState\":\"urkdtmlx\"},\"location\":\"ekuksjtx\",\"tags\":{\"cryuan\":\"dmpa\"},\"id\":\"w\",\"name\":\"xzdxtayrlhmwh\",\"type\":\"pmrqobm\"}],\"nextLink\":\"kknryrtihf\"}")
                .toObject(MapsAccounts.class);
        Assertions.assertEquals("kknryrtihf", model.nextLink());
    }

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