assertNotNull("Should have been auto assigned", jpa.getEntityManagerFactory());
assertNotNull("Should have been auto assigned", jpa.getTransactionManager());
MockEndpoint mock = getMockEndpoint("mock:result");
mock.expectedMessageCount(1);
ValueBuilder header = mock.message(0).header(JpaConstants.ENTITYMANAGER);
header.isNotNull();
header.isInstanceOf(EntityManager.class);
template.sendBody("direct:start", new SendEmail("someone@somewhere.org"));
assertMockEndpointsSatisfied();
assertEntityInDB(1);