// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.mariadb.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.mariadb.models.WaitStatisticsResultList;

public final class WaitStatisticsResultListTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        WaitStatisticsResultList model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"startTime\":\"2021-06-01T12:34:05Z\",\"endTime\":\"2021-04-18T17:26:11Z\",\"eventName\":\"pkdeemaofmxagkvt\",\"eventTypeName\":\"lmqkrhahvlj\",\"queryId\":8641218324516083606,\"databaseName\":\"uhcdhm\",\"userId\":9171481587703972041,\"count\":2559158309988957100,\"totalTimeInMs\":67.65837881164192},\"id\":\"fadmws\",\"name\":\"crgvxpvgom\",\"type\":\"lf\"},{\"properties\":{\"startTime\":\"2021-11-02T08:41:46Z\",\"endTime\":\"2021-01-25T11:49:06Z\",\"eventName\":\"b\",\"eventTypeName\":\"ldawkzbaliourqha\",\"queryId\":131133871653701525,\"databaseName\":\"shsfwxosowzxcu\",\"userId\":8073809250590062964,\"count\":1300140705032284604,\"totalTimeInMs\":1.4710972145220103},\"id\":\"bwpucwwfvovbv\",\"name\":\"euecivyhzceuoj\",\"type\":\"jrwjueiotwm\"},{\"properties\":{\"startTime\":\"2021-05-30T22:11:56Z\",\"endTime\":\"2021-03-28T20:17:55Z\",\"eventName\":\"it\",\"eventTypeName\":\"rjaw\",\"queryId\":5655548323505802664,\"databaseName\":\"hniskxfbkpyc\",\"userId\":3207887590068682243,\"count\":4650522274065706998,\"totalTimeInMs\":45.00040230258809},\"id\":\"auwhvylwzbtdhx\",\"name\":\"jznb\",\"type\":\"pow\"},{\"properties\":{\"startTime\":\"2020-12-27T11:29:17Z\",\"endTime\":\"2021-07-21T15:39:33Z\",\"eventName\":\"veual\",\"eventTypeName\":\"j\",\"queryId\":5663355853068180050,\"databaseName\":\"obbc\",\"userId\":853590458031501964,\"count\":6987699562222584934,\"totalTimeInMs\":72.0275116638853},\"id\":\"rbpbewtghfgblcg\",\"name\":\"xzvlvqhjkbegib\",\"type\":\"nmxiebwwaloayqc\"}],\"nextLink\":\"rtzju\"}")
                .toObject(WaitStatisticsResultList.class);
    }

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