This is an example project that contains everything needed to use Spring Batch 3 to read a CSV file and write a CSV file. There are also tests.
This is a simple Spring Batch project. This implementation will read an CSV file and write an CSV file with almost no Java code.
http://javaninja.net/2016/02/spring-batch-csv/
Once you have a Spring Batch application written, how do you test it?