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

package azure.resourcemanager.methodsubscriptionid.generated;

import azure.resourcemanager.methodsubscriptionid.implementation.models.OperationListResult;
import com.azure.core.util.BinaryData;
import org.junit.jupiter.api.Assertions;

public final class OperationListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        OperationListResult model = BinaryData.fromString(
            "{\"value\":[{\"name\":\"dtmlxhekuksjt\",\"isDataAction\":false,\"display\":{\"provider\":\"mparcryuanzw\",\"resource\":\"zdxtayrlhmwhf\",\"operation\":\"rqobmtuk\",\"description\":\"ryrtihfxtijbpzv\"},\"origin\":\"user\",\"actionType\":\"Internal\"},{\"name\":\"mglzufcy\",\"isDataAction\":true,\"display\":{\"provider\":\"bihanuf\",\"resource\":\"cbjy\",\"operation\":\"git\",\"description\":\"qhabifpikxwcz\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}],\"nextLink\":\"q\"}")
            .toObject(OperationListResult.class);
        Assertions.assertEquals("q", model.nextLink());
    }
}
