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

public final class FilePathAvailabilityRequestTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        FilePathAvailabilityRequest model =
            BinaryData
                .fromString("{\"name\":\"pku\",\"subnetId\":\"jkrlkhbzhfepg\"}")
                .toObject(FilePathAvailabilityRequest.class);
        Assertions.assertEquals("pku", model.name());
        Assertions.assertEquals("jkrlkhbzhfepg", model.subnetId());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        FilePathAvailabilityRequest model =
            new FilePathAvailabilityRequest().withName("pku").withSubnetId("jkrlkhbzhfepg");
        model = BinaryData.fromObject(model).toObject(FilePathAvailabilityRequest.class);
        Assertions.assertEquals("pku", model.name());
        Assertions.assertEquals("jkrlkhbzhfepg", model.subnetId());
    }
}
