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

package com.azure.resourcemanager.managednetworkfabric.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.managednetworkfabric.fluent.models.NetworkPacketBrokerProperties;
import org.junit.jupiter.api.Assertions;

public final class NetworkPacketBrokerPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        NetworkPacketBrokerProperties model =
            BinaryData
                .fromString(
                    "{\"networkFabricId\":\"ujqbbgsimwejl\",\"networkDeviceIds\":[\"bpjzobdwbcpraswk\",\"hydt\",\"aczkf\",\"fatgawphnski\"],\"sourceInterfaceIds\":[\"gtqcumecsaaqgoq\",\"diuycsbskowkrbhz\"],\"networkTapIds\":[\"k\",\"tmqowiuasfgqg\",\"cyhfaimqvdru\"],\"neighborGroupIds\":[\"gyfpeoehgfmqmsk\",\"ixvlz\",\"xplhpeva\",\"yntvzjyielbq\"],\"provisioningState\":\"Deleting\"}")
                .toObject(NetworkPacketBrokerProperties.class);
        Assertions.assertEquals("ujqbbgsimwejl", model.networkFabricId());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        NetworkPacketBrokerProperties model = new NetworkPacketBrokerProperties().withNetworkFabricId("ujqbbgsimwejl");
        model = BinaryData.fromObject(model).toObject(NetworkPacketBrokerProperties.class);
        Assertions.assertEquals("ujqbbgsimwejl", model.networkFabricId());
    }
}
