log.info("connections are good");
// Verify Clients have distinct ConnectionValidators.
Field field = Client.class.getDeclaredField("connectionValidator");
field.setAccessible(true);
ConnectionValidator connectionValidator1 = (ConnectionValidator) field.get(client1);
ConnectionValidator connectionValidator2 = (ConnectionValidator) field.get(client2);
assertNotSame(connectionValidator1, connectionValidator2);
// Test client side connection failure notifications.
int wait = (PING_PERIODS_TO_WAIT + 1) * VALIDATOR_PING_PERIOD + VALIDATOR_PING_TIMEOUT + 2000;
log.info(getName() + " going to sleep for " + wait + " ms");