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

public final class UriFolderJobInputTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        UriFolderJobInput model =
            BinaryData
                .fromString(
                    "{\"jobInputType\":\"uri_folder\",\"mode\":\"EvalMount\",\"uri\":\"ydoccnxshanzb\",\"description\":\"adh\"}")
                .toObject(UriFolderJobInput.class);
        Assertions.assertEquals("adh", model.description());
        Assertions.assertEquals(InputDeliveryMode.EVAL_MOUNT, model.mode());
        Assertions.assertEquals("ydoccnxshanzb", model.uri());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        UriFolderJobInput model =
            new UriFolderJobInput()
                .withDescription("adh")
                .withMode(InputDeliveryMode.EVAL_MOUNT)
                .withUri("ydoccnxshanzb");
        model = BinaryData.fromObject(model).toObject(UriFolderJobInput.class);
        Assertions.assertEquals("adh", model.description());
        Assertions.assertEquals(InputDeliveryMode.EVAL_MOUNT, model.mode());
        Assertions.assertEquals("ydoccnxshanzb", model.uri());
    }
}
