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

package com.azure.resourcemanager.synapse.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.synapse.models.WorkloadGroupListResult;

public final class WorkloadGroupListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        WorkloadGroupListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"minResourcePercent\":629393280,\"maxResourcePercent\":384824052,\"minResourcePercentPerRequest\":16.797453313308843,\"maxResourcePercentPerRequest\":54.3681983767773,\"importance\":\"oxoismsksbpim\",\"queryExecutionTimeout\":2072188488},\"id\":\"ljxkcgxxlx\",\"name\":\"ffgcvizqz\",\"type\":\"wlvwlyoupf\"},{\"properties\":{\"minResourcePercent\":1825475274,\"maxResourcePercent\":11112663,\"minResourcePercentPerRequest\":15.658754728553815,\"maxResourcePercentPerRequest\":65.38612430460616,\"importance\":\"gkfmins\",\"queryExecutionTimeout\":760014296},\"id\":\"zfttsttktlahb\",\"name\":\"actxtgzukxitm\",\"type\":\"qtgqqqxhrnxr\"}],\"nextLink\":\"pjui\"}")
                .toObject(WorkloadGroupListResult.class);
    }

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