// 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.models.DelegatedSubnetUsage;

public final class DelegatedSubnetUsageTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DelegatedSubnetUsage model =
            BinaryData
                .fromString("{\"subnetName\":\"tko\",\"usage\":3980056682158656120}")
                .toObject(DelegatedSubnetUsage.class);
    }

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