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

public final class AssetJobOutputTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AssetJobOutput model =
            BinaryData.fromString("{\"mode\":\"Upload\",\"uri\":\"lkiexhajlfnthiq\"}").toObject(AssetJobOutput.class);
        Assertions.assertEquals(OutputDeliveryMode.UPLOAD, model.mode());
        Assertions.assertEquals("lkiexhajlfnthiq", model.uri());
    }

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