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

package com.azure.resourcemanager.avs.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.avs.models.WorkloadNetworkDnsServicesList;

public final class WorkloadNetworkDnsServicesListTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        WorkloadNetworkDnsServicesList model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"displayName\":\"aokonzmnsik\",\"dnsServiceIp\":\"kqze\",\"defaultDnsZone\":\"kdltfzxmhhvhg\",\"fqdnZones\":[],\"logLevel\":\"WARNING\",\"status\":\"FAILURE\",\"provisioningState\":\"Updating\",\"revision\":1030791701335877298},\"id\":\"gxtibqdxbxw\",\"name\":\"kbogqxndlkzgx\",\"type\":\"uriplbpodxunkb\"},{\"properties\":{\"displayName\":\"mubyynt\",\"dnsServiceIp\":\"rbqtkoie\",\"defaultDnsZone\":\"eotg\",\"fqdnZones\":[],\"logLevel\":\"ERROR\",\"status\":\"FAILURE\",\"provisioningState\":\"Building\",\"revision\":3793721948753294900},\"id\":\"wzizxbmpgcjefuzm\",\"name\":\"vpbttd\",\"type\":\"morppxebmnzbtbh\"},{\"properties\":{\"displayName\":\"lkfg\",\"dnsServiceIp\":\"dneu\",\"defaultDnsZone\":\"fphsdyhtozfikdow\",\"fqdnZones\":[],\"logLevel\":\"ERROR\",\"status\":\"SUCCESS\",\"provisioningState\":\"Deleting\",\"revision\":6214959618688242083},\"id\":\"ithhqzon\",\"name\":\"sg\",\"type\":\"b\"},{\"properties\":{\"displayName\":\"hfwdsjnkaljutiis\",\"dnsServiceIp\":\"cffgdkzzewk\",\"defaultDnsZone\":\"hqcrailvpnpp\",\"fqdnZones\":[],\"logLevel\":\"DEBUG\",\"status\":\"FAILURE\",\"provisioningState\":\"Canceled\",\"revision\":8515210692095487331},\"id\":\"xyjrxsagafcnih\",\"name\":\"wqapnedgfbcvk\",\"type\":\"vq\"}],\"nextLink\":\"keqdcvdrhvoods\"}")
                .toObject(WorkloadNetworkDnsServicesList.class);
    }

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