// 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.ConnectorSettingInner;
import com.azure.resourcemanager.security.models.ConnectorSettingList;
import java.util.Arrays;

public final class ConnectorSettingListTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ConnectorSettingList model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{},\"id\":\"kzmkwklsnoxaxmqe\",\"name\":\"alhhjnhgwydyynfs\",\"type\":\"khgb\"},{\"properties\":{},\"id\":\"narfdlpukhpyrn\",\"name\":\"izjcpeog\",\"type\":\"hnmgbroux\"},{\"properties\":{},\"id\":\"fhp\",\"name\":\"paz\",\"type\":\"zoyw\"},{\"properties\":{},\"id\":\"dulontacn\",\"name\":\"qwtehtuevr\",\"type\":\"rljyoogwxhnsdu\"}],\"nextLink\":\"wbsreur\"}")
                .toObject(ConnectorSettingList.class);
    }

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