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

package com.azure.resourcemanager.batch.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.batch.models.NfsMountConfiguration;
import org.junit.jupiter.api.Assertions;

public final class NfsMountConfigurationTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        NfsMountConfiguration model =
            BinaryData
                .fromString("{\"source\":\"fz\",\"relativeMountPath\":\"whxxbuyqax\",\"mountOptions\":\"eqz\"}")
                .toObject(NfsMountConfiguration.class);
        Assertions.assertEquals("fz", model.source());
        Assertions.assertEquals("whxxbuyqax", model.relativeMountPath());
        Assertions.assertEquals("eqz", model.mountOptions());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        NfsMountConfiguration model =
            new NfsMountConfiguration().withSource("fz").withRelativeMountPath("whxxbuyqax").withMountOptions("eqz");
        model = BinaryData.fromObject(model).toObject(NfsMountConfiguration.class);
        Assertions.assertEquals("fz", model.source());
        Assertions.assertEquals("whxxbuyqax", model.relativeMountPath());
        Assertions.assertEquals("eqz", model.mountOptions());
    }
}
