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

package com.azure.resourcemanager.kusto.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.kusto.fluent.models.DiagnoseVirtualNetworkResultInner;
import java.util.Arrays;
import org.junit.jupiter.api.Assertions;

public final class DiagnoseVirtualNetworkResultInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DiagnoseVirtualNetworkResultInner model =
            BinaryData
                .fromString("{\"findings\":[\"kuofqweykhme\"]}")
                .toObject(DiagnoseVirtualNetworkResultInner.class);
        Assertions.assertEquals("kuofqweykhme", model.findings().get(0));
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        DiagnoseVirtualNetworkResultInner model =
            new DiagnoseVirtualNetworkResultInner().withFindings(Arrays.asList("kuofqweykhme"));
        model = BinaryData.fromObject(model).toObject(DiagnoseVirtualNetworkResultInner.class);
        Assertions.assertEquals("kuofqweykhme", model.findings().get(0));
    }
}
