@Transactional @Test
public void testNormalProcessing() throws Exception {
getAsInitializingBean(itemReader).afterPropertiesSet();
getAsItemStream(itemReader).open(executionContext);
Foo foo1 = itemReader.read();
assertEquals(1, foo1.getValue());
Foo foo2 = itemReader.read();
assertEquals(2, foo2.getValue());
Foo foo3 = itemReader.read();
assertEquals(3, foo3.getValue());
Foo foo4 = itemReader.read();
assertEquals(4, foo4.getValue());
Foo foo5 = itemReader.read();
assertEquals(5, foo5.getValue());
assertNull(itemReader.read());
}