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

package com.azure.resourcemanager.datalakeanalytics.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.datalakeanalytics.models.DataLakeAnalyticsAccountListResult;

public final class DataLakeAnalyticsAccountListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DataLakeAnalyticsAccountListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"accountId\":\"47c27d28-9804-40f1-9fe8-972b58e88043\",\"provisioningState\":\"Running\",\"state\":\"Suspended\",\"creationTime\":\"2021-06-18T18:26:01Z\",\"lastModifiedTime\":\"2021-08-02T07:01:22Z\",\"endpoint\":\"zm\"},\"location\":\"hmtzopbsphrup\",\"tags\":{\"ycm\":\"sybbejhph\",\"htbmuf\":\"xaobhdxbmtqioqjz\",\"rxybqsoq\":\"ownoizhw\"},\"id\":\"jgkdmbpazlobcu\",\"name\":\"pdznrbtcqqjnqgl\",\"type\":\"qgn\"},{\"properties\":{\"accountId\":\"847982c4-b999-455b-bfc1-31f377931dc6\",\"provisioningState\":\"Running\",\"state\":\"Suspended\",\"creationTime\":\"2021-06-05T07:25:28Z\",\"lastModifiedTime\":\"2021-11-19T20:38:19Z\",\"endpoint\":\"esaagdfm\"},\"location\":\"lzl\",\"tags\":{\"vktsizntocipao\":\"rifkwm\",\"poyfdkfogkn\":\"ajpsquc\",\"eqsrdeupewnwreit\":\"gjofjd\"},\"id\":\"zyf\",\"name\":\"usarhmofc\",\"type\":\"hs\"},{\"properties\":{\"accountId\":\"c4ba6409-b002-49d9-893a-b54aa93d4e95\",\"provisioningState\":\"Undeleting\",\"state\":\"Suspended\",\"creationTime\":\"2021-06-13T04:20:54Z\",\"lastModifiedTime\":\"2021-10-06T17:56:05Z\",\"endpoint\":\"kuksjtxukcdm\"},\"location\":\"arcryuanzwuxzdxt\",\"tags\":{\"u\":\"lhmwhfpmrqobm\"},\"id\":\"knryrtihfxtij\",\"name\":\"pzvgnwzsymglzufc\",\"type\":\"zk\"}],\"count\":1162765594,\"nextLink\":\"ihanuf\"}")
                .toObject(DataLakeAnalyticsAccountListResult.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        DataLakeAnalyticsAccountListResult model = new DataLakeAnalyticsAccountListResult();
        model = BinaryData.fromObject(model).toObject(DataLakeAnalyticsAccountListResult.class);
    }
}
