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

public final class NfsMountConfigurationTests {
    @Test
    public void testDeserialize() {
        NfsMountConfiguration model =
            BinaryData
                .fromString(
                    "{\"source\":\"wi\",\"relativeMountPath\":\"fnjhfjxwmszkkfo\",\"mountOptions\":\"eyfkzikfja\"}")
                .toObject(NfsMountConfiguration.class);
        Assertions.assertEquals("wi", model.source());
        Assertions.assertEquals("fnjhfjxwmszkkfo", model.relativeMountPath());
        Assertions.assertEquals("eyfkzikfja", model.mountOptions());
    }

    @Test
    public void testSerialize() {
        NfsMountConfiguration model =
            new NfsMountConfiguration()
                .withSource("wi")
                .withRelativeMountPath("fnjhfjxwmszkkfo")
                .withMountOptions("eyfkzikfja");
        model = BinaryData.fromObject(model).toObject(NfsMountConfiguration.class);
        Assertions.assertEquals("wi", model.source());
        Assertions.assertEquals("fnjhfjxwmszkkfo", model.relativeMountPath());
        Assertions.assertEquals("eyfkzikfja", model.mountOptions());
    }
}
