// 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.models.VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated;
import java.util.Arrays;
import org.junit.jupiter.api.Assertions;

public final class VulnerabilityAssessmentRecurringScansPropertiesAutoGeneratedTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated model =
            BinaryData
                .fromString(
                    "{\"isEnabled\":false,\"emailSubscriptionAdmins\":false,\"emails\":[\"ykhyawfvjlboxqvk\",\"lmxhomdyn\"]}")
                .toObject(VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated.class);
        Assertions.assertEquals(false, model.isEnabled());
        Assertions.assertEquals(false, model.emailSubscriptionAdmins());
        Assertions.assertEquals("ykhyawfvjlboxqvk", model.emails().get(0));
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated model =
            new VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated()
                .withIsEnabled(false)
                .withEmailSubscriptionAdmins(false)
                .withEmails(Arrays.asList("ykhyawfvjlboxqvk", "lmxhomdyn"));
        model =
            BinaryData.fromObject(model).toObject(VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated.class);
        Assertions.assertEquals(false, model.isEnabled());
        Assertions.assertEquals(false, model.emailSubscriptionAdmins());
        Assertions.assertEquals("ykhyawfvjlboxqvk", model.emails().get(0));
    }
}
