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

package com.azure.resourcemanager.imagebuilder.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.imagebuilder.fluent.models.RunOutputInner;
import org.junit.jupiter.api.Assertions;

public final class RunOutputInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        RunOutputInner model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"artifactId\":\"isdkfthwxmnteiw\",\"artifactUri\":\"pvkmijcmmxdcuf\",\"provisioningState\":\"Canceled\"},\"id\":\"pymzidnsezcxtbzs\",\"name\":\"fycc\",\"type\":\"newmdwzjeiachbo\"}")
                .toObject(RunOutputInner.class);
        Assertions.assertEquals("isdkfthwxmnteiw", model.artifactId());
        Assertions.assertEquals("pvkmijcmmxdcuf", model.artifactUri());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        RunOutputInner model = new RunOutputInner().withArtifactId("isdkfthwxmnteiw").withArtifactUri("pvkmijcmmxdcuf");
        model = BinaryData.fromObject(model).toObject(RunOutputInner.class);
        Assertions.assertEquals("isdkfthwxmnteiw", model.artifactId());
        Assertions.assertEquals("pvkmijcmmxdcuf", model.artifactUri());
    }
}
