I have created one spring batch application that basically reads from a databse and write it into a csv file. The application has a job and one step. In that one step I am reading, processing and writing to the file. These tasks are done by reader, processor and writer respectively.
Now I want to write unit test cases for these all in Junit.
How should I go about it?