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

package com.azure.resourcemanager.hdinsight.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.hdinsight.models.VirtualNetworkProfile;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class VirtualNetworkProfileTests {
    @Test
    public void testDeserialize() {
        VirtualNetworkProfile model =
            BinaryData
                .fromString("{\"id\":\"ougpbkwt\",\"subnet\":\"tduqktapspwgcuer\"}")
                .toObject(VirtualNetworkProfile.class);
        Assertions.assertEquals("ougpbkwt", model.id());
        Assertions.assertEquals("tduqktapspwgcuer", model.subnet());
    }

    @Test
    public void testSerialize() {
        VirtualNetworkProfile model = new VirtualNetworkProfile().withId("ougpbkwt").withSubnet("tduqktapspwgcuer");
        model = BinaryData.fromObject(model).toObject(VirtualNetworkProfile.class);
        Assertions.assertEquals("ougpbkwt", model.id());
        Assertions.assertEquals("tduqktapspwgcuer", model.subnet());
    }
}
