Integer i = (Integer) client.invoke(new Integer(7));
assertEquals(8, i.intValue());
client.addConnectionListener(this);
Field field = Client.class.getDeclaredField("connectionValidator");
field.setAccessible(true);
ConnectionValidator cv = (ConnectionValidator) field.get(client);
assertNotNull(cv);
field = ConnectionValidator.class.getDeclaredField("stopped");
field.setAccessible(true);
boolean stopped = ((Boolean) field.get(cv)).booleanValue();
assertFalse(stopped);
cv.stop();
stopped = ((Boolean) field.get(cv)).booleanValue();
assertTrue(stopped);
log.info(getName() + " PASSES");
}