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

public final class SupportedConnectorPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        SupportedConnectorProperties model =
            BinaryData
                .fromString("{\"connectorType\":\"dfdlwggyts\",\"maxSpeedInMbps\":676587800}")
                .toObject(SupportedConnectorProperties.class);
        Assertions.assertEquals("dfdlwggyts", model.connectorType());
        Assertions.assertEquals(676587800, model.maxSpeedInMbps());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        SupportedConnectorProperties model =
            new SupportedConnectorProperties().withConnectorType("dfdlwggyts").withMaxSpeedInMbps(676587800);
        model = BinaryData.fromObject(model).toObject(SupportedConnectorProperties.class);
        Assertions.assertEquals("dfdlwggyts", model.connectorType());
        Assertions.assertEquals(676587800, model.maxSpeedInMbps());
    }
}
