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

public final class NodeStateCountsTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        NodeStateCounts model =
            BinaryData
                .fromString(
                    "{\"idleNodeCount\":1191856604,\"runningNodeCount\":715935859,\"preparingNodeCount\":2047901283,\"unusableNodeCount\":1346181735,\"leavingNodeCount\":1358224808,\"preemptedNodeCount\":304822445}")
                .toObject(NodeStateCounts.class);
    }

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