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

package com.azure.resourcemanager.networkcloud.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.networkcloud.models.MachineSkuSlot;

public final class MachineSkuSlotTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MachineSkuSlot model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":5997587449917439733,\"cpuSockets\":7198774832435959008,\"disks\":[{\"capacityGB\":5971236881688553019,\"connection\":\"PCIE\",\"type\":\"SSD\"},{\"capacityGB\":4180557428227255332,\"connection\":\"SATA\",\"type\":\"SSD\"},{\"capacityGB\":5330345201564576468,\"connection\":\"RAID\",\"type\":\"HDD\"}],\"generation\":\"pwijnhy\",\"hardwareVersion\":\"vfycxzb\",\"memoryCapacityGB\":6720131909300742836,\"model\":\"vrvmtgjqppyost\",\"networkInterfaces\":[{\"address\":\"myhgfipnsxkmc\",\"deviceConnectionType\":\"PCI\",\"model\":\"rrjreafxtsgu\",\"physicalSlot\":5426531018037158287,\"portCount\":4260202501305129373,\"portSpeed\":1724623473761671606,\"vendor\":\"lo\"}],\"totalThreads\":3996169992007046944,\"vendor\":\"uzlm\"},\"rackSlot\":4397404082163755540}")
                .toObject(MachineSkuSlot.class);
    }

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