// 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.models.SecuritySubAssessmentList;

public final class SecuritySubAssessmentListTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        SecuritySubAssessmentList model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"id\":\"vgbmhr\",\"displayName\":\"kw\",\"remediation\":\"jejveg\",\"impact\":\"bpnaixexccbdre\",\"category\":\"hcexdrrvqa\",\"description\":\"kghtpwijnh\",\"timeGenerated\":\"2021-01-19T12:23:33Z\"},\"id\":\"ycxzbfvoo\",\"name\":\"vrvmtgjqppyost\",\"type\":\"on\"},{\"properties\":{\"id\":\"hgfipnsxkmcw\",\"displayName\":\"krrjrea\",\"remediation\":\"sgumhjglikkxwsl\",\"impact\":\"bq\",\"category\":\"uzlm\",\"description\":\"elfk\",\"timeGenerated\":\"2021-02-21T20:32:58Z\"},\"id\":\"rpw\",\"name\":\"xeznoi\",\"type\":\"brnjwmw\"}],\"nextLink\":\"nbsazejjoqkag\"}")
                .toObject(SecuritySubAssessmentList.class);
    }

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