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

package com.azure.resourcemanager.appcontainers.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.appcontainers.models.JobConfigurationManualTriggerConfig;
import org.junit.jupiter.api.Assertions;

public final class JobConfigurationManualTriggerConfigTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        JobConfigurationManualTriggerConfig model =
            BinaryData
                .fromString("{\"replicaCompletionCount\":342609300,\"parallelism\":423959041}")
                .toObject(JobConfigurationManualTriggerConfig.class);
        Assertions.assertEquals(342609300, model.replicaCompletionCount());
        Assertions.assertEquals(423959041, model.parallelism());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        JobConfigurationManualTriggerConfig model =
            new JobConfigurationManualTriggerConfig().withReplicaCompletionCount(342609300).withParallelism(423959041);
        model = BinaryData.fromObject(model).toObject(JobConfigurationManualTriggerConfig.class);
        Assertions.assertEquals(342609300, model.replicaCompletionCount());
        Assertions.assertEquals(423959041, model.parallelism());
    }
}
