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

package com.azure.resourcemanager.machinelearning.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.machinelearning.models.AmlComputeNodesInformation;

public final class AmlComputeNodesInformationTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AmlComputeNodesInformation model =
            BinaryData
                .fromString(
                    "{\"nodes\":[{\"nodeId\":\"zjancuxr\",\"privateIpAddress\":\"wbavxbniwdj\",\"publicIpAddress\":\"zt\",\"port\":593552862,\"nodeState\":\"unusable\",\"runId\":\"xytxhpzxbz\"},{\"nodeId\":\"zabglcuhxwt\",\"privateIpAddress\":\"yqiklbbovplwzb\",\"publicIpAddress\":\"gy\",\"port\":1408848677,\"nodeState\":\"idle\",\"runId\":\"mkfssxqukkfplgm\"},{\"nodeId\":\"xnkjzkdesl\",\"privateIpAddress\":\"lopwiyig\",\"publicIpAddress\":\"pkdwzbai\",\"port\":830727700,\"nodeState\":\"unusable\",\"runId\":\"m\"}],\"nextLink\":\"qupedeojnab\"}")
                .toObject(AmlComputeNodesInformation.class);
    }

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