em.close();
// assert there was no select on the employee table
assertNoneSQLAnyOrder("SELECT .* DC_EMPLOYEE .*");
assertTrue(emps instanceof DelayedProxy);
DelayedProxy dep = (DelayedProxy)emps;
dep.setDirectAccess(true);
assertEquals(0, emps.size());
dep.setDirectAccess(false);
assertNotNull(emps);
// call contains and assert a select from the employee table
// occurred that the expected entities are returned.
resetSQL();
assertTrue(emps.contains(e));