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

package com.azure.resourcemanager.vmwarecloudsimple.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.vmwarecloudsimple.fluent.models.ResourcePoolInner;
import org.junit.jupiter.api.Assertions;

public final class ResourcePoolInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ResourcePoolInner model =
            BinaryData
                .fromString(
                    "{\"id\":\"hashsfwxosow\",\"location\":\"cugicjoox\",\"name\":\"ebwpucwwfvo\",\"privateCloudId\":\"vmeueci\",\"properties\":{\"fullName\":\"zceuojgjrw\"},\"type\":\"eiotwmcdytdx\"}")
                .toObject(ResourcePoolInner.class);
        Assertions.assertEquals("hashsfwxosow", model.id());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ResourcePoolInner model = new ResourcePoolInner().withId("hashsfwxosow");
        model = BinaryData.fromObject(model).toObject(ResourcePoolInner.class);
        Assertions.assertEquals("hashsfwxosow", model.id());
    }
}
