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

package com.azure.resourcemanager.devtestlabs.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.devtestlabs.models.ArtifactDeploymentStatusProperties;
import org.junit.jupiter.api.Assertions;

public final class ArtifactDeploymentStatusPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ArtifactDeploymentStatusProperties model =
            BinaryData
                .fromString(
                    "{\"deploymentStatus\":\"mxelnwcltyjed\",\"artifactsApplied\":427218214,\"totalArtifacts\":979401460}")
                .toObject(ArtifactDeploymentStatusProperties.class);
        Assertions.assertEquals("mxelnwcltyjed", model.deploymentStatus());
        Assertions.assertEquals(427218214, model.artifactsApplied());
        Assertions.assertEquals(979401460, model.totalArtifacts());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ArtifactDeploymentStatusProperties model =
            new ArtifactDeploymentStatusProperties()
                .withDeploymentStatus("mxelnwcltyjed")
                .withArtifactsApplied(427218214)
                .withTotalArtifacts(979401460);
        model = BinaryData.fromObject(model).toObject(ArtifactDeploymentStatusProperties.class);
        Assertions.assertEquals("mxelnwcltyjed", model.deploymentStatus());
        Assertions.assertEquals(427218214, model.artifactsApplied());
        Assertions.assertEquals(979401460, model.totalArtifacts());
    }
}
