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

package com.azure.resourcemanager.synapse.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentRuleBaselineInner;
import com.azure.resourcemanager.synapse.models.SqlPoolVulnerabilityAssessmentRuleBaselineItem;
import java.util.Arrays;

public final class SqlPoolVulnerabilityAssessmentRuleBaselineInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        SqlPoolVulnerabilityAssessmentRuleBaselineInner model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"baselineResults\":[{\"result\":[]},{\"result\":[]},{\"result\":[]},{\"result\":[]}]},\"id\":\"x\",\"name\":\"knpirgnepttwq\",\"type\":\"sniffc\"}")
                .toObject(SqlPoolVulnerabilityAssessmentRuleBaselineInner.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        SqlPoolVulnerabilityAssessmentRuleBaselineInner model =
            new SqlPoolVulnerabilityAssessmentRuleBaselineInner()
                .withBaselineResults(
                    Arrays
                        .asList(
                            new SqlPoolVulnerabilityAssessmentRuleBaselineItem().withResult(Arrays.asList()),
                            new SqlPoolVulnerabilityAssessmentRuleBaselineItem().withResult(Arrays.asList()),
                            new SqlPoolVulnerabilityAssessmentRuleBaselineItem().withResult(Arrays.asList()),
                            new SqlPoolVulnerabilityAssessmentRuleBaselineItem().withResult(Arrays.asList())));
        model = BinaryData.fromObject(model).toObject(SqlPoolVulnerabilityAssessmentRuleBaselineInner.class);
    }
}
