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

public final class VirtualNetworksPropertiesInfraVnetProfileHciTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        VirtualNetworksPropertiesInfraVnetProfileHci model =
            BinaryData
                .fromString(
                    "{\"mocGroup\":\"qhoftrmaequiah\",\"mocLocation\":\"cslfaoqzpiyylha\",\"mocVnetName\":\"swhccsphk\"}")
                .toObject(VirtualNetworksPropertiesInfraVnetProfileHci.class);
        Assertions.assertEquals("qhoftrmaequiah", model.mocGroup());
        Assertions.assertEquals("cslfaoqzpiyylha", model.mocLocation());
        Assertions.assertEquals("swhccsphk", model.mocVnetName());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        VirtualNetworksPropertiesInfraVnetProfileHci model =
            new VirtualNetworksPropertiesInfraVnetProfileHci()
                .withMocGroup("qhoftrmaequiah")
                .withMocLocation("cslfaoqzpiyylha")
                .withMocVnetName("swhccsphk");
        model = BinaryData.fromObject(model).toObject(VirtualNetworksPropertiesInfraVnetProfileHci.class);
        Assertions.assertEquals("qhoftrmaequiah", model.mocGroup());
        Assertions.assertEquals("cslfaoqzpiyylha", model.mocLocation());
        Assertions.assertEquals("swhccsphk", model.mocVnetName());
    }
}
