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

public final class ServerVulnerabilityAssessmentsListInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ServerVulnerabilityAssessmentsListInner model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"provisioningState\":\"Deprovisioning\"},\"id\":\"ys\",\"name\":\"gdotcubiipuipwo\",\"type\":\"onmacjekniz\"}]}")
                .toObject(ServerVulnerabilityAssessmentsListInner.class);
    }

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