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

package com.azure.resourcemanager.netapp.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.netapp.fluent.models.SubvolumeProperties;
import org.junit.jupiter.api.Assertions;

public final class SubvolumePropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        SubvolumeProperties model =
            BinaryData
                .fromString(
                    "{\"path\":\"ggjioolvr\",\"size\":6372304417284094836,\"parentPath\":\"kkgll\",\"provisioningState\":\"jygvjayvbl\"}")
                .toObject(SubvolumeProperties.class);
        Assertions.assertEquals("ggjioolvr", model.path());
        Assertions.assertEquals(6372304417284094836L, model.size());
        Assertions.assertEquals("kkgll", model.parentPath());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        SubvolumeProperties model =
            new SubvolumeProperties().withPath("ggjioolvr").withSize(6372304417284094836L).withParentPath("kkgll");
        model = BinaryData.fromObject(model).toObject(SubvolumeProperties.class);
        Assertions.assertEquals("ggjioolvr", model.path());
        Assertions.assertEquals(6372304417284094836L, model.size());
        Assertions.assertEquals("kkgll", model.parentPath());
    }
}
