// 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.GatewayCertificateAuthorityCollection;

public final class GatewayCertificateAuthorityCollectionTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        GatewayCertificateAuthorityCollection model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"isTrusted\":false},\"id\":\"fgxkydpmypgf\",\"name\":\"vmtywhlakxp\",\"type\":\"jpewpyjlfx\"},{\"properties\":{\"isTrusted\":true},\"id\":\"crzge\",\"name\":\"qxbpiatwfauje\",\"type\":\"qdtadrakgdd\"},{\"properties\":{\"isTrusted\":true},\"id\":\"ukizyhgsqtnqs\",\"name\":\"txqfpjbq\",\"type\":\"gweeiwd\"}],\"nextLink\":\"mnc\"}")
                .toObject(GatewayCertificateAuthorityCollection.class);
    }

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