I followed this link and prepared a JUnit test case cannot load application context from junit for spring batch job. However I get following exception upon running a test.