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

package tsptest.armversioned.generated;

import com.azure.core.util.BinaryData;
import org.junit.jupiter.api.Assertions;
import tsptest.armversioned.implementation.models.TopLevelArmResourceListResult;

public final class TopLevelArmResourceListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        TopLevelArmResourceListResult model = BinaryData.fromString(
            "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\"},\"location\":\"hwlrx\",\"tags\":{\"dmbpazlobcufpdz\":\"soqijg\",\"qqjnqgl\":\"rbt\",\"foooj\":\"qgn\"},\"id\":\"wifsq\",\"name\":\"saagdf\",\"type\":\"glzlhjxrifkwmrv\"}],\"nextLink\":\"siznto\"}")
            .toObject(TopLevelArmResourceListResult.class);
        Assertions.assertEquals("hwlrx", model.value().get(0).location());
        Assertions.assertEquals("soqijg", model.value().get(0).tags().get("dmbpazlobcufpdz"));
        Assertions.assertEquals("siznto", model.nextLink());
    }
}
