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

package com.azure.resourcemanager.azurearcdata.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.azurearcdata.models.SqlManagedInstanceListResult;

public final class SqlManagedInstanceListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        SqlManagedInstanceListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"dataControllerId\":\"ryffdfdosy\",\"admin\":\"xpaojakhmsbz\",\"startTime\":\"crzevdphlx\",\"endTime\":\"lthqtrgqjbp\",\"lastUploadedDate\":\"2021-02-11T10:14:36Z\",\"provisioningState\":\"zgvfcjrwz\",\"licenseType\":\"LicenseIncluded\",\"clusterId\":\"tfell\",\"extensionId\":\"fziton\"},\"extendedLocation\":{\"name\":\"fpjkjlxofp\",\"type\":\"CustomLocation\"},\"sku\":{\"tier\":\"BusinessCritical\",\"dev\":false,\"size\":\"ininmay\",\"family\":\"ybb\",\"capacity\":49478059},\"location\":\"epoo\",\"tags\":{\"eotusivyevc\":\"uvamiheognarxzxt\",\"un\":\"iqihn\",\"fygxgispemvtzfk\":\"bwjzr\"},\"id\":\"fublj\",\"name\":\"fxqeof\",\"type\":\"aeqjhqjbasvms\"},{\"properties\":{\"dataControllerId\":\"qulngsntnbybkzgc\",\"admin\":\"wclxxwrl\",\"startTime\":\"ouskcqvkocrc\",\"endTime\":\"kwt\",\"lastUploadedDate\":\"2020-12-21T11:33:13Z\",\"provisioningState\":\"biksq\",\"licenseType\":\"BasePrice\",\"clusterId\":\"sainqpjwnzl\",\"extensionId\":\"fmppe\"},\"extendedLocation\":{\"name\":\"mgxsab\",\"type\":\"CustomLocation\"},\"sku\":{\"tier\":\"GeneralPurpose\",\"dev\":false,\"size\":\"c\",\"family\":\"zdzevndh\",\"capacity\":968287955},\"location\":\"d\",\"tags\":{\"usnhutje\":\"dsbdkvwrwjf\"},\"id\":\"tmrldhugjzzdatq\",\"name\":\"hocdgeab\",\"type\":\"gphuticndvka\"},{\"properties\":{\"dataControllerId\":\"wyiftyhxhur\",\"admin\":\"ftyxolniw\",\"startTime\":\"cukjf\",\"endTime\":\"iawxklry\",\"lastUploadedDate\":\"2021-10-07T14:36:38Z\",\"provisioningState\":\"asy\",\"licenseType\":\"LicenseIncluded\",\"clusterId\":\"dhsgcba\",\"extensionId\":\"hejkotynqgou\"},\"extendedLocation\":{\"name\":\"dlikwyqkgfgibma\",\"type\":\"CustomLocation\"},\"sku\":{\"tier\":\"BusinessCritical\",\"dev\":false,\"size\":\"yb\",\"family\":\"qedqytbciqfoufl\",\"capacity\":1004345628},\"location\":\"zsm\",\"tags\":{\"tmut\":\"glougpbk\",\"pwgcuertu\":\"uqktap\",\"bmdg\":\"kdosvqw\"},\"id\":\"bjf\",\"name\":\"dgmb\",\"type\":\"bexppb\"}],\"nextLink\":\"q\"}")
                .toObject(SqlManagedInstanceListResult.class);
    }

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