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

package com.azure.resourcemanager.databricks.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.databricks.models.VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork;
import org.junit.jupiter.api.Assertions;

public final class VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetworkTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork model =
            BinaryData
                .fromString("{\"id\":\"u\"}")
                .toObject(VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork.class);
        Assertions.assertEquals("u", model.id());
    }

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