def METHOD_NAME(self):
    original_entity = load_job(Path("./tests/test_configs/spark_job/spark_job_inputs_outputs_test.yml"))
    rest_representation = to_rest_job_object(original_entity)
    assert rest_representation.properties.inputs["input1"].mode == InputDeliveryMode.DIRECT
    assert rest_representation.properties.outputs["output1"].mode == OutputDeliveryMode.DIRECT
    assert (
        rest_representation.properties.inputs["input1"].uri
        == "https://azuremlexamples.blob.core.windows.net/datasets/iris.csv"
    )
    assert rest_representation.properties.outputs["output1"].job_output_type == JobOutputType.URI_FILE