I have a simple code which writes data to hdfs in csv and parquet format, How can I write scala tests here which can test the below component. I can't actually write the data to hdfs(in the tests) as code is running in jules pipeline. Any suggestions will be helpful
df
.write.format("com.databricks.spark.csv")
.option("header", "true")
.mode("append")
.save(hdfspath)