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

public final class TopologyResourcePropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        TopologyResourceProperties model =
            BinaryData
                .fromString(
                    "{\"calculatedDateTime\":\"2020-12-30T06:35:30Z\",\"topologyResources\":[{\"resourceId\":\"qzbqqxlajrnwxa\",\"severity\":\"veh\",\"recommendationsExist\":false,\"networkZones\":\"xoafgaoqltfae\",\"topologyScore\":420432271,\"location\":\"mfgvxirpghriypo\",\"parents\":[],\"children\":[]},{\"resourceId\":\"h\",\"severity\":\"prlpy\",\"recommendationsExist\":false,\"networkZones\":\"iq\",\"topologyScore\":593641633,\"location\":\"xiitdfuxt\",\"parents\":[],\"children\":[]},{\"resourceId\":\"miybnn\",\"severity\":\"tgnljhnmgixhcmav\",\"recommendationsExist\":false,\"networkZones\":\"udorh\",\"topologyScore\":256597525,\"location\":\"prot\",\"parents\":[],\"children\":[]},{\"resourceId\":\"mbxhugcmjkav\",\"severity\":\"or\",\"recommendationsExist\":true,\"networkZones\":\"pmdtz\",\"topologyScore\":1527890487,\"location\":\"fvnz\",\"parents\":[],\"children\":[]}]}")
                .toObject(TopologyResourceProperties.class);
    }

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