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

package com.azure.resourcemanager.mariadb.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.mariadb.models.VirtualNetworkRuleListResult;

public final class VirtualNetworkRuleListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        VirtualNetworkRuleListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"virtualNetworkSubnetId\":\"odxobnbdxkqpxok\",\"ignoreMissingVnetServiceEndpoint\":true,\"state\":\"Unknown\"},\"id\":\"pimexgstxgcpodg\",\"name\":\"aajrm\",\"type\":\"djwzrlov\"}],\"nextLink\":\"lwhijcoejctbzaq\"}")
                .toObject(VirtualNetworkRuleListResult.class);
    }

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