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

package com.azure.resourcemanager.datalakeanalytics.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.datalakeanalytics.fluent.models.ComputePolicyProperties;

public final class ComputePolicyPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ComputePolicyProperties model =
            BinaryData
                .fromString(
                    "{\"objectId\":\"ba91c649-ed39-4022-b697-182497ec12d8\",\"objectType\":\"User\",\"maxDegreeOfParallelismPerJob\":1344764188,\"minPriorityPerJob\":453736827}")
                .toObject(ComputePolicyProperties.class);
    }

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