// 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.OutputDeliveryMode;
import com.azure.resourcemanager.machinelearning.models.UriFileJobOutput;
import org.junit.jupiter.api.Assertions;

public final class UriFileJobOutputTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        UriFileJobOutput model =
            BinaryData
                .fromString(
                    "{\"jobOutputType\":\"uri_file\",\"mode\":\"Upload\",\"uri\":\"dfj\",\"description\":\"esocwiqbuou\"}")
                .toObject(UriFileJobOutput.class);
        Assertions.assertEquals("esocwiqbuou", model.description());
        Assertions.assertEquals(OutputDeliveryMode.UPLOAD, model.mode());
        Assertions.assertEquals("dfj", model.uri());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        UriFileJobOutput model =
            new UriFileJobOutput().withDescription("esocwiqbuou").withMode(OutputDeliveryMode.UPLOAD).withUri("dfj");
        model = BinaryData.fromObject(model).toObject(UriFileJobOutput.class);
        Assertions.assertEquals("esocwiqbuou", model.description());
        Assertions.assertEquals(OutputDeliveryMode.UPLOAD, model.mode());
        Assertions.assertEquals("dfj", model.uri());
    }
}
