http://opensource.atlassian.com/projects/spring/browse/BATCH-237 Added clear() after flush (and test case)