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

package com.azure.resourcemanager.security.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.security.fluent.models.ConnectionStringsInner;
import com.azure.resourcemanager.security.models.IngestionConnectionString;
import java.util.Arrays;

public final class ConnectionStringsInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ConnectionStringsInner model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"location\":\"qd\",\"value\":\"jgwdtgukranbl\"},{\"location\":\"hqlkccuzgygqwaho\",\"value\":\"lwgniiprglvawu\"}]}")
                .toObject(ConnectionStringsInner.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ConnectionStringsInner model =
            new ConnectionStringsInner()
                .withValue(Arrays.asList(new IngestionConnectionString(), new IngestionConnectionString()));
        model = BinaryData.fromObject(model).toObject(ConnectionStringsInner.class);
    }
}
