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

package com.azure.resourcemanager.hybridcontainerservice.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.hybridcontainerservice.models.StorageSpacesPropertiesVmwareStorageProfile;
import org.junit.jupiter.api.Assertions;

public final class StorageSpacesPropertiesVmwareStorageProfileTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        StorageSpacesPropertiesVmwareStorageProfile model =
            BinaryData
                .fromString(
                    "{\"datacenter\":\"wrlkdmtn\",\"datastore\":\"ok\",\"folder\":\"llxdyhgs\",\"resourcePool\":\"cogjltdtbn\"}")
                .toObject(StorageSpacesPropertiesVmwareStorageProfile.class);
        Assertions.assertEquals("wrlkdmtn", model.datacenter());
        Assertions.assertEquals("ok", model.datastore());
        Assertions.assertEquals("llxdyhgs", model.folder());
        Assertions.assertEquals("cogjltdtbn", model.resourcePool());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        StorageSpacesPropertiesVmwareStorageProfile model =
            new StorageSpacesPropertiesVmwareStorageProfile()
                .withDatacenter("wrlkdmtn")
                .withDatastore("ok")
                .withFolder("llxdyhgs")
                .withResourcePool("cogjltdtbn");
        model = BinaryData.fromObject(model).toObject(StorageSpacesPropertiesVmwareStorageProfile.class);
        Assertions.assertEquals("wrlkdmtn", model.datacenter());
        Assertions.assertEquals("ok", model.datastore());
        Assertions.assertEquals("llxdyhgs", model.folder());
        Assertions.assertEquals("cogjltdtbn", model.resourcePool());
    }
}
