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

package com.azure.resourcemanager.databoxedge.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.databoxedge.models.MountPointMap;
import org.junit.jupiter.api.Assertions;

public final class MountPointMapTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MountPointMap model =
            BinaryData
                .fromString(
                    "{\"shareId\":\"vhqlkthumaqo\",\"roleId\":\"gycdu\",\"mountPoint\":\"r\",\"roleType\":\"Cognitive\"}")
                .toObject(MountPointMap.class);
        Assertions.assertEquals("vhqlkthumaqo", model.shareId());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        MountPointMap model = new MountPointMap().withShareId("vhqlkthumaqo");
        model = BinaryData.fromObject(model).toObject(MountPointMap.class);
        Assertions.assertEquals("vhqlkthumaqo", model.shareId());
    }
}
