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

package com.azure.resourcemanager.appcomplianceautomation.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.appcomplianceautomation.models.ReportResourceList;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class ReportResourceListTests {
    @Test
    public void testDeserialize() {
        ReportResourceList model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"id\":\"ithxqhabifpi\",\"status\":\"Active\",\"tenantId\":\"zb\",\"reportName\":\"cnpqxuhivyqniwby\",\"offerGuid\":\"k\",\"timeZone\":\"vd\",\"triggerTime\":\"2021-06-29T10:27:04Z\",\"nextTriggerTime\":\"2021-06-10T17:14:25Z\",\"lastTriggerTime\":\"2021-10-16T19:19:35Z\",\"subscriptions\":[],\"resources\":[],\"provisioningState\":\"Creating\"},\"id\":\"xgaudccs\",\"name\":\"h\",\"type\":\"jcny\"}],\"nextLink\":\"hkryhtn\"}")
                .toObject(ReportResourceList.class);
        Assertions.assertEquals("hkryhtn", model.nextLink());
    }

    @Test
    public void testSerialize() {
        ReportResourceList model = new ReportResourceList().withNextLink("hkryhtn");
        model = BinaryData.fromObject(model).toObject(ReportResourceList.class);
        Assertions.assertEquals("hkryhtn", model.nextLink());
    }
}
