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

package com.azure.resourcemanager.appcomplianceautomation.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.appcomplianceautomation.models.OverviewStatus;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class OverviewStatusTests {
    @Test
    public void testDeserialize() {
        OverviewStatus model =
            BinaryData
                .fromString("{\"passedCount\":1951665736,\"failedCount\":542784283,\"manualCount\":2110455897}")
                .toObject(OverviewStatus.class);
        Assertions.assertEquals(1951665736, model.passedCount());
        Assertions.assertEquals(542784283, model.failedCount());
        Assertions.assertEquals(2110455897, model.manualCount());
    }

    @Test
    public void testSerialize() {
        OverviewStatus model =
            new OverviewStatus().withPassedCount(1951665736).withFailedCount(542784283).withManualCount(2110455897);
        model = BinaryData.fromObject(model).toObject(OverviewStatus.class);
        Assertions.assertEquals(1951665736, model.passedCount());
        Assertions.assertEquals(542784283, model.failedCount());
        Assertions.assertEquals(2110455897, model.manualCount());
    }
}
