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

package com.azure.resourcemanager.storagemover.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.storagemover.models.AgentList;

public final class AgentListTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AgentList model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"description\":\"arxzxtheot\",\"agentVersion\":\"ivyevcciqihnhun\",\"arcResourceId\":\"bwjzr\",\"arcVmUuid\":\"fygxgispemvtzfk\",\"agentStatus\":\"Executing\",\"lastStatusUpdate\":\"2021-02-20T00:32:11Z\",\"localIPAddress\":\"ofx\",\"memoryInMB\":2388725661616365328,\"numberOfCores\":5715399919571240312,\"uptimeInSeconds\":7397813421811477794,\"provisioningState\":\"Succeeded\"},\"id\":\"s\",\"name\":\"msmjqulngsntn\",\"type\":\"ybkzgcwr\"},{\"properties\":{\"description\":\"lxxwrljdouskc\",\"agentVersion\":\"kocrcjdkwtnhx\",\"arcResourceId\":\"njbiksqrglssain\",\"arcVmUuid\":\"p\",\"agentStatus\":\"Registering\",\"lastStatusUpdate\":\"2021-07-08T15:21:21Z\",\"localIPAddress\":\"jfm\",\"memoryInMB\":1935409977330061217,\"numberOfCores\":7999807040543028655,\"uptimeInSeconds\":724103813452953638,\"provisioningState\":\"Succeeded\"},\"id\":\"qduujitcjczdz\",\"name\":\"vndhkrwpdapp\",\"type\":\"sbdkvwr\"},{\"properties\":{\"description\":\"feusnhut\",\"agentVersion\":\"ltmrldh\",\"arcResourceId\":\"gjzzdatqxhocdg\",\"arcVmUuid\":\"ablgphuticndvk\",\"agentStatus\":\"RequiresAttention\",\"lastStatusUpdate\":\"2021-10-08T07:48:08Z\",\"localIPAddress\":\"ftyhxhurokf\",\"memoryInMB\":5881942076944182815,\"numberOfCores\":921409398987301775,\"uptimeInSeconds\":6179231024758193483,\"provisioningState\":\"Succeeded\"},\"id\":\"fkgiawxk\",\"name\":\"ryplwckbasyypn\",\"type\":\"dhsgcba\"}],\"nextLink\":\"hejkotynqgou\"}")
                .toObject(AgentList.class);
    }

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