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

public final class IoTSecurityAggregatedAlertPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        IoTSecurityAggregatedAlertProperties model =
            BinaryData
                .fromString(
                    "{\"alertType\":\"nsmvbxwyj\",\"alertDisplayName\":\"lh\",\"vendorName\":\"aln\",\"reportedSeverity\":\"High\",\"remediationSteps\":\"sxyawjoyaqcs\",\"description\":\"jpkiidzyexznelix\",\"count\":3030315127445847890,\"effectedResourceType\":\"folhbnxknal\",\"systemSource\":\"lp\",\"actionTaken\":\"gdtpnapnyiro\",\"logAnalyticsQuery\":\"hpigv\",\"topDevicesList\":[{\"deviceId\":\"gqgitxmedjvcsl\",\"alertsCount\":5849348987172300465,\"lastOccurrence\":\"ncw\"},{\"deviceId\":\"hxg\",\"alertsCount\":8312530618702549187,\"lastOccurrence\":\"ucnapkteoellwp\"},{\"deviceId\":\"d\",\"alertsCount\":4494990539994529771,\"lastOccurrence\":\"b\"},{\"deviceId\":\"ceopzfqrhhuaopp\",\"alertsCount\":5543596082951034644,\"lastOccurrence\":\"xolzdahzx\"}]}")
                .toObject(IoTSecurityAggregatedAlertProperties.class);
    }

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