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

package com.azure.resourcemanager.databoxedge.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.databoxedge.fluent.models.NetworkSettingsProperties;

public final class NetworkSettingsPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        NetworkSettingsProperties model =
            BinaryData
                .fromString(
                    "{\"networkAdapters\":[{\"adapterId\":\"qgidokgjljyo\",\"adapterPosition\":{\"networkGroup\":\"RDMA\",\"port\":384639682},\"index\":1059812914,\"nodeId\":\"ncghkje\",\"networkAdapterName\":\"zhbijhtxfv\",\"label\":\"bfs\",\"macAddress\":\"nehmpvecx\",\"linkSpeed\":8488647462806528566,\"status\":\"Inactive\",\"rdmaStatus\":\"Incapable\",\"dhcpStatus\":\"Enabled\",\"ipv4Configuration\":{\"ipAddress\":\"pukgriwflzlfb\",\"subnet\":\"puz\",\"gateway\":\"ispnqzahmgkbrp\"},\"ipv6Configuration\":{\"ipAddress\":\"hibnuqqkpika\",\"prefixLength\":1007022027,\"gateway\":\"tqagnbuynh\"},\"ipv6LinkLocalAddress\":\"gg\",\"dnsServers\":[\"fsiarbutr\"]},{\"adapterId\":\"pnazzm\",\"adapterPosition\":{\"networkGroup\":\"NonRDMA\",\"port\":2047177811},\"index\":840461055,\"nodeId\":\"tdbhrbnla\",\"networkAdapterName\":\"xmyskp\",\"label\":\"enbtkcxywny\",\"macAddress\":\"rsyn\",\"linkSpeed\":531733013424860873,\"status\":\"Inactive\",\"rdmaStatus\":\"Incapable\",\"dhcpStatus\":\"Disabled\",\"ipv4Configuration\":{\"ipAddress\":\"lhaaxdbabp\",\"subnet\":\"wrqlfktsthsuco\",\"gateway\":\"nyyazttbtwwrqpue\"},\"ipv6Configuration\":{\"ipAddress\":\"zywbiex\",\"prefixLength\":1206070255,\"gateway\":\"ue\"},\"ipv6LinkLocalAddress\":\"ibx\",\"dnsServers\":[\"bhqwalmuzyoxa\",\"pdkzjancuxr\"]}]}")
                .toObject(NetworkSettingsProperties.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        NetworkSettingsProperties model = new NetworkSettingsProperties();
        model = BinaryData.fromObject(model).toObject(NetworkSettingsProperties.class);
    }
}
