@Test
public void storeUnitsInTwoPersistenceUnits()
throws Exception
{
// given
final TestEntity firstEntity = new TestEntity();
final TestEntity secondEntity = new TestEntity();
// when
firstEmp.get().persist( firstEntity );
secondEmp.get().persist( secondEntity );
// then
assertNotNull( firstEmp.get().find( TestEntity.class, firstEntity.getId() ) );
assertNotNull( secondEmp.get().find( TestEntity.class, secondEntity.getId() ) );
assertNull( firstEmp.get().find( TestEntity.class, secondEntity.getId() ) );
assertNull( secondEmp.get().find( TestEntity.class, firstEntity.getId() ) );
}