SocketServerInvoker serverInvoker = (SocketServerInvoker) connector.getServerInvoker();
Field field = ServerInvoker.class.getDeclaredField("callbackHandlers");
field.setAccessible(true);
Map callbackHandlers = (Map) field.get(serverInvoker);
assertEquals(1, callbackHandlers.size());
ServerInvokerCallbackHandler serverInvokerCallbackHandler;
serverInvokerCallbackHandler = (ServerInvokerCallbackHandler) callbackHandlers.values().iterator().next();
Client callbackClient = serverInvokerCallbackHandler.getCallbackClient();
assertTrue(callbackClient.getInvoker() instanceof MicroSocketClientInvoker);
MicroSocketClientInvoker callbackClientInvoker = (MicroSocketClientInvoker) callbackClient.getInvoker();
field = MicroSocketClientInvoker.class.getDeclaredField("pool");
field.setAccessible(true);
LinkedList pool = (LinkedList) field.get(callbackClientInvoker);