// 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.ComputePolicyInner;
import org.junit.jupiter.api.Assertions;

public final class ComputePolicyInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ComputePolicyInner model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"objectId\":\"448d003b-5efd-44ea-a13c-8532937815d5\",\"objectType\":\"Group\",\"maxDegreeOfParallelismPerJob\":440516085,\"minPriorityPerJob\":152662254},\"name\":\"attpngjcrcczsq\",\"type\":\"hvmdajvnysounq\",\"id\":\"a\"}")
                .toObject(ComputePolicyInner.class);
        Assertions.assertEquals("a", model.id());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ComputePolicyInner model = new ComputePolicyInner().withId("a");
        model = BinaryData.fromObject(model).toObject(ComputePolicyInner.class);
        Assertions.assertEquals("a", model.id());
    }
}
