http://jira.springframework.org/browse/BATCH-296 Added additional test, but the bug was already fixed in m3.