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

public final class VirtualNetworkInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        VirtualNetworkInner model =
            BinaryData
                .fromString(
                    "{\"assignable\":false,\"id\":\"lwuip\",\"location\":\"cjzkzivgvvcna\",\"name\":\"hyrnxxmu\",\"properties\":{\"privateCloudId\":\"ndrdvstkwq\"},\"type\":\"chea\"}")
                .toObject(VirtualNetworkInner.class);
        Assertions.assertEquals("lwuip", model.id());
    }

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