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

package com.azure.resourcemanager.mysqlflexibleserver.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.mysqlflexibleserver.fluent.models.VirtualNetworkSubnetUsageResultInner;

public final class VirtualNetworkSubnetUsageResultInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        VirtualNetworkSubnetUsageResultInner model =
            BinaryData
                .fromString(
                    "{\"location\":\"ev\",\"subscriptionId\":\"ggzfbu\",\"delegatedSubnetsUsage\":[{\"subnetName\":\"faxkffeii\",\"usage\":8222423909788566095},{\"subnetName\":\"ez\",\"usage\":9115490458846755949},{\"subnetName\":\"mzsb\",\"usage\":3522178877698458456},{\"subnetName\":\"igrxwburvjxxjn\",\"usage\":8439639335334985317}]}")
                .toObject(VirtualNetworkSubnetUsageResultInner.class);
    }

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