Set callbackHandlers = invocationHandler.callbackHandlers;
assertEquals(1, callbackHandlers.size());
ServerInvokerCallbackHandler sich = (ServerInvokerCallbackHandler) callbackHandlers.iterator().next();
Client callbackClient = sich.getCallbackClient();
assertTrue(callbackClient.getInvoker() instanceof BisocketClientInvoker);
BisocketClientInvoker callbackClientInvoker = (BisocketClientInvoker) callbackClient.getInvoker();
assertEquals(TEST_PING_FREQUENCY, callbackClientInvoker.getPingFrequency());
assertEquals(TEST_MAX_RETRIES, callbackClientInvoker.getMaxRetries());
// Test client invoker configuration.
assertTrue(client.getInvoker() instanceof BisocketClientInvoker);
BisocketClientInvoker clientInvoker = (BisocketClientInvoker) client.getInvoker();
assertEquals(TEST_PING_FREQUENCY, clientInvoker.getPingFrequency());
assertEquals(TEST_MAX_RETRIES, clientInvoker.getMaxRetries());
// Test callback server invoker configuration.
Field field = Client.class.getDeclaredField("callbackConnectors");
field.setAccessible(true);
Map callbackConnectorsMap = (Map) field.get(client);