def METHOD_NAME(self, mock_spark_session):
    """Tests HiveToGCSTemplate runs for parquet format output"""
    hive_to_gcs_template = HiveToGCSTemplate()
    mock_parsed_args = hive_to_gcs_template.parse_args(
        ["--hive.gcs.input.database=database",
         "--hive.gcs.input.table=table",
         "--hive.gcs.output.location=gs://test",
         "--hive.gcs.output.format=parquet",
         "--hive.gcs.output.mode=overwrite"])
    mock_spark_session.table.return_value = mock_spark_session.dataframe.DataFrame
    hive_to_gcs_template.run(mock_spark_session, mock_parsed_args)
    mock_spark_session.table.assert_called_once_with("database.table")
    mock_spark_session.dataframe.DataFrame.write \
        .mode.assert_called_once_with(constants.OUTPUT_MODE_OVERWRITE)
    mock_spark_session.dataframe.DataFrame.write \
        .mode() \
        .parquet.assert_called_once_with("gs://test")