// 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.fluent.models.VolumeProperties;
import org.junit.jupiter.api.Assertions;

public final class VolumePropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        VolumeProperties model =
            BinaryData
                .fromString(
                    "{\"attachedTo\":[\"tutnwlduycvuzhyr\",\"ewipm\",\"ekdxuku\"],\"detailedStatus\":\"Active\",\"detailedStatusMessage\":\"jxundxgketwzh\",\"provisioningState\":\"Succeeded\",\"serialNumber\":\"f\",\"sizeMiB\":2708101359604263797}")
                .toObject(VolumeProperties.class);
        Assertions.assertEquals(2708101359604263797L, model.sizeMiB());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        VolumeProperties model = new VolumeProperties().withSizeMiB(2708101359604263797L);
        model = BinaryData.fromObject(model).toObject(VolumeProperties.class);
        Assertions.assertEquals(2708101359604263797L, model.sizeMiB());
    }
}
