@Test(expected = ContextStillHasRetainedEntitiesException.class)
public void PoolStillHasRetainedEntitiesExceptionTest() {

    entity.retain(new Object());
    context.destroyEntity(entity);
    context.destroyAllEntities();
}