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

public final class TopologyListTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        TopologyList model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"calculatedDateTime\":\"2021-03-01T23:44:24Z\",\"topologyResources\":[]},\"location\":\"tuodxeszabbelaw\",\"id\":\"muaslzkw\",\"name\":\"rwoycqucwyh\",\"type\":\"hnomdrkywuh\"},{\"properties\":{\"calculatedDateTime\":\"2021-05-02T07:59:23Z\",\"topologyResources\":[]},\"location\":\"rutlwexxwlalniex\",\"id\":\"srzpgepqtybbww\",\"name\":\"gdakchz\",\"type\":\"vl\"},{\"properties\":{\"calculatedDateTime\":\"2021-05-06T06:22:36Z\",\"topologyResources\":[]},\"location\":\"cxkjibnxmysuxswq\",\"id\":\"ntvlwijpsttexo\",\"name\":\"qpwcyyufmh\",\"type\":\"uncuw\"},{\"properties\":{\"calculatedDateTime\":\"2021-11-18T23:48:24Z\",\"topologyResources\":[]},\"location\":\"dqzh\",\"id\":\"ctddun\",\"name\":\"ndy\",\"type\":\"pchrqbn\"}],\"nextLink\":\"rcgegydcwboxjum\"}")
                .toObject(TopologyList.class);
    }

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