protected JpaTemplate jpaTemplate;
@Test
public void testNonTXRollback() throws Exception {
// first create three records
template.sendBody("jpa://" + SendEmail.class.getName(), new SendEmail("foo@beer.org"));
template.sendBody("jpa://" + SendEmail.class.getName(), new SendEmail("bar@beer.org"));
template.sendBody("jpa://" + SendEmail.class.getName(), new SendEmail("kaboom@beer.org"));
// should only rollback the failed
getMockEndpoint("mock:start").expectedMinimumMessageCount(5);
// and only the 2 good messages goes here
getMockEndpoint("mock:result").expectedMessageCount(2);