I am developing an api to read data from Kafka and write into blob storage in Java using Spark Structured Streaming. I could not find a way to write unit test for that. I have a reader class which returns a dataset and a writer class which talked a dataset as input and write into blob storage in the specified format. I saw some blogs on MemoryStream and but don't think it will suffice my case.
Thanks in advance.