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

public final class SubvolumeInfoInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        SubvolumeInfoInner model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"path\":\"fq\",\"size\":3785815942098550285,\"parentPath\":\"htmdvy\",\"provisioningState\":\"ikdgszywkbir\"},\"id\":\"uzhlhkjoqrv\",\"name\":\"qaatjinrv\",\"type\":\"oupmfii\"}")
                .toObject(SubvolumeInfoInner.class);
        Assertions.assertEquals("fq", model.path());
        Assertions.assertEquals(3785815942098550285L, model.size());
        Assertions.assertEquals("htmdvy", model.parentPath());
    }

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