// 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.SqlServerInstanceListResult;

public final class SqlServerInstanceListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        SqlServerInstanceListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"version\":\"SQL Server"
                        + " 2016\",\"edition\":\"Express\",\"containerResourceId\":\"x\",\"createTime\":\"feiithlvmez\",\"vCore\":\"shxmzsbbzoggigrx\",\"status\":\"Connected\",\"patchLevel\":\"rvjx\",\"collation\":\"nspydptkoenkoukn\",\"currentVersion\":\"dwtiukbldngkp\",\"instanceName\":\"ipazyxoegukgjnpi\",\"tcpDynamicPorts\":\"gygev\",\"tcpStaticPorts\":\"ntypmrbpizcdrqj\",\"productId\":\"pyd\",\"licenseType\":\"Undefined\",\"azureDefenderStatusLastUpdated\":\"2021-08-04T14:21:07Z\",\"azureDefenderStatus\":\"Unknown\",\"provisioningState\":\"ejzicwifsjtt\"},\"location\":\"fbishcbkha\",\"tags\":{\"xw\":\"yeamdphagalpb\",\"shwankixzbinje\":\"ipwhonowk\"},\"id\":\"uttmrywnuzoqft\",\"name\":\"yqzrnkcqvyxlw\",\"type\":\"zlsico\"},{\"properties\":{\"version\":\"SQL"
                        + " Server"
                        + " 2017\",\"edition\":\"Express\",\"containerResourceId\":\"vlryavwhheunmmq\",\"createTime\":\"yxzk\",\"vCore\":\"ocukoklyax\",\"status\":\"Unknown\",\"patchLevel\":\"nuqszfkbey\",\"collation\":\"wrmjmwvvjektc\",\"currentVersion\":\"enhwlrs\",\"instanceName\":\"rzpwvlqdqgbiq\",\"tcpDynamicPorts\":\"ihkaetcktvfc\",\"tcpStaticPorts\":\"fsnkymuctq\",\"productId\":\"fbebrjcxer\",\"licenseType\":\"HADR\",\"azureDefenderStatusLastUpdated\":\"2021-09-07T01:58:14Z\",\"azureDefenderStatus\":\"Unknown\",\"provisioningState\":\"fvjrbirphxepcy\"},\"location\":\"hfnljkyq\",\"tags\":{\"gvcl\":\"uujqgidokgjljyo\",\"jhtxfvgxbfsmxne\":\"bgsncghkjeszzhb\"},\"id\":\"mpvecxgodebfqk\",\"name\":\"rbmpukgri\",\"type\":\"flz\"},{\"properties\":{\"version\":\"SQL"
                        + " Server"
                        + " 2016\",\"edition\":\"Web\",\"containerResourceId\":\"uzycispnqza\",\"createTime\":\"gkbrpyyd\",\"vCore\":\"bnuqqkpik\",\"status\":\"Disconnected\",\"patchLevel\":\"gvtqagnbuynh\",\"collation\":\"gg\",\"currentVersion\":\"bfs\",\"instanceName\":\"rbu\",\"tcpDynamicPorts\":\"cvpnazzmhjrunmpx\",\"tcpStaticPorts\":\"dbhrbnlankxm\",\"productId\":\"k\",\"licenseType\":\"Undefined\",\"azureDefenderStatusLastUpdated\":\"2021-05-05T04:59:18Z\",\"azureDefenderStatus\":\"Unknown\",\"provisioningState\":\"cxy\"},\"location\":\"y\",\"tags\":{\"haaxdbabphl\":\"synlqidybyxczfc\"},\"id\":\"rqlfktsthsucocmn\",\"name\":\"yazttbtwwrqpue\",\"type\":\"ckzywbiexzfeyue\"}],\"nextLink\":\"ibx\"}")
                .toObject(SqlServerInstanceListResult.class);
    }

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