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

package com.azure.resourcemanager.apimanagement.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.apimanagement.models.GatewayHostnameConfigurationCollection;

public final class GatewayHostnameConfigurationCollectionTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        GatewayHostnameConfigurationCollection model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"hostname\":\"tvkitbfjtdy\",\"certificateId\":\"nplfac\",\"negotiateClientCertificate\":true,\"tls10Enabled\":true,\"tls11Enabled\":false,\"http2Enabled\":true},\"id\":\"etjt\",\"name\":\"rhutf\",\"type\":\"oadtxopgehpadkmd\"},{\"properties\":{\"hostname\":\"szxvctkbbxuhar\",\"certificateId\":\"ir\",\"negotiateClientCertificate\":false,\"tls10Enabled\":true,\"tls11Enabled\":false,\"http2Enabled\":true},\"id\":\"ngsux\",\"name\":\"czbmyq\",\"type\":\"ogh\"},{\"properties\":{\"hostname\":\"idjanormovdxxur\",\"certificateId\":\"ujmoi\",\"negotiateClientCertificate\":true,\"tls10Enabled\":true,\"tls11Enabled\":true,\"http2Enabled\":false},\"id\":\"e\",\"name\":\"jslkyozdsfzjue\",\"type\":\"rhrhtsl\"}],\"nextLink\":\"tv\"}")
                .toObject(GatewayHostnameConfigurationCollection.class);
    }

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