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

package com.azure.resourcemanager.machinelearning.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.machinelearning.models.JobOutput;
import org.junit.jupiter.api.Assertions;

public final class JobOutputTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        JobOutput model =
            BinaryData
                .fromString("{\"jobOutputType\":\"JobOutput\",\"description\":\"qmbzmq\"}")
                .toObject(JobOutput.class);
        Assertions.assertEquals("qmbzmq", model.description());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        JobOutput model = new JobOutput().withDescription("qmbzmq");
        model = BinaryData.fromObject(model).toObject(JobOutput.class);
        Assertions.assertEquals("qmbzmq", model.description());
    }
}
