protected void verify() {
   IdentityMap im =
       ((AbstractSession) getSession())
           .getIdentityMapAccessorInstance()
           .getIdentityMap(Employee.class);
   if ((im != null) && (im.getSize() > 0)) {
     throw new TestErrorException("Employee read should not have been put into session cache.");
   }
 }
 protected void verify() {
   // ensure changes were merged into the session cache
   IdentityMap im =
       ((AbstractSession) getSession())
           .getIdentityMapAccessorInstance()
           .getIdentityMap(Employee.class);
   if ((im == null) || (im.getSize() != 1)) {
     throw new TestErrorException("Employee should have been put into session cache.");
   }
 }