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

public final class VulnerabilityAssessmentScanRecordListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        VulnerabilityAssessmentScanRecordListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"scanId\":\"gllqwjy\",\"triggerType\":\"Recurring\",\"state\":\"FailedToRun\",\"startTime\":\"2021-05-06T19:16:01Z\",\"endTime\":\"2021-08-10T18:33:43Z\",\"errors\":[],\"storageContainerPath\":\"k\",\"numberOfFailedSecurityChecks\":2100624724},\"id\":\"bxvvyhg\",\"name\":\"opbyrqufegxu\",\"type\":\"wz\"},{\"properties\":{\"scanId\":\"hlmctlpdngitvgb\",\"triggerType\":\"Recurring\",\"state\":\"Passed\",\"startTime\":\"2021-08-25T00:52:30Z\",\"endTime\":\"2021-01-21T03:55:34Z\",\"errors\":[],\"storageContainerPath\":\"ejvegrhbpnaixex\",\"numberOfFailedSecurityChecks\":69108212},\"id\":\"dreaxh\",\"name\":\"exdrrvqahqkg\",\"type\":\"tpwijnh\"},{\"properties\":{\"scanId\":\"vfycxzb\",\"triggerType\":\"OnDemand\",\"state\":\"Failed\",\"startTime\":\"2021-12-07T13:01:59Z\",\"endTime\":\"2021-02-04T20:53:33Z\",\"errors\":[],\"storageContainerPath\":\"jqppyostronzmy\",\"numberOfFailedSecurityChecks\":1320458581},\"id\":\"ipn\",\"name\":\"xkmcwaekrrjre\",\"type\":\"fxtsgum\"}],\"nextLink\":\"glikkxwslolb\"}")
                .toObject(VulnerabilityAssessmentScanRecordListResult.class);
    }

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