def METHOD_NAME():
    input_variable_name = "input"
    input_variable_value = pd.DataFrame({"A": [1], "B": [2]})
    output_variable_name = "output"
    pandas_df_jsonized = """[{"A":1,"B":2}]"""
    expected_scala_code = '''
        val rdd_json_array = spark.sparkContext.makeRDD("""{}""" :: Nil)
        val {} = spark.read.json(rdd_json_array)'''.format(
        pandas_df_jsonized, output_variable_name
    )
    sparkcommand = SendPandasDfToSparkCommand(
        input_variable_name, input_variable_value, output_variable_name, 1
    )
    assert sparkcommand._scala_command(
        input_variable_name, input_variable_value, output_variable_name
    ) == Command(expected_scala_code)