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

package com.azure.resourcemanager.datamigration.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.datamigration.models.QueryExecutionResult;

public final class QueryExecutionResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        QueryExecutionResult model =
            BinaryData
                .fromString(
                    "{\"queryText\":\"rriloz\",\"statementsInBatch\":3000055829145832796,\"sourceResult\":{\"executionCount\":6368017154430461078,\"cpuTimeMs\":81.507996,\"elapsedTimeMs\":51.30364,\"waitStats\":{\"edcg\":{\"waitType\":\"ziycslevufuztck\",\"waitTimeMs\":1.6041756,\"waitCount\":3080192913349706815},\"gkrvqeevto\":{\"waitType\":\"lwmmrqzzrrjv\",\"waitTimeMs\":35.945713,\"waitCount\":4625416343428044914},\"tpzdmovzvfvaawzq\":{\"waitType\":\"r\",\"waitTimeMs\":2.533424,\"waitCount\":2061235851967739080}},\"hasErrors\":false,\"sqlErrors\":[\"z\",\"riglaec\",\"ndtic\",\"kpvzmlq\"]},\"targetResult\":{\"executionCount\":1903894675207143490,\"cpuTimeMs\":59.404415,\"elapsedTimeMs\":76.44003,\"waitStats\":{\"yawfvjlboxq\":{\"waitType\":\"lnpkciay\",\"waitTimeMs\":25.842249,\"waitCount\":6591786682618428957},\"bnraauzzptjazysd\":{\"waitType\":\"jlmxhomdynhd\",\"waitTimeMs\":14.867181,\"waitCount\":2807759469982329757}},\"hasErrors\":false,\"sqlErrors\":[\"wva\",\"qyuvvfonkp\",\"hqyikvy\",\"auy\"]}}")
                .toObject(QueryExecutionResult.class);
    }

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