Object o = config.get(ServerInvoker.TIMEOUT);
assertEquals(ConnectionValidator.DEFAULT_PING_TIMEOUT, o);
// Test ping retries.
assertTrue(invoker instanceof MicroSocketClientInvoker);
MicroSocketClientInvoker socketInvoker = (MicroSocketClientInvoker) invoker;
int defaultPingRetries = Integer.parseInt(ConnectionValidator.DEFAULT_NUMBER_OF_PING_RETRIES);
assertEquals(defaultPingRetries, socketInvoker.getNumberOfCallRetries());
// Test connection retries.
int defaultConnectionRetries = Integer.parseInt(ConnectionValidator.DEFAULT_NUMBER_OF_CONNECTION_RETRIES);
assertEquals(defaultConnectionRetries, socketInvoker.getNumberOfRetries());
client.disconnect();
}