Field field = SocketServerInvoker.class.getDeclaredField("clientpool");
field.setAccessible(true);
LRUPool clientpool = (LRUPool) field.get(serverInvoker);
Set threads = clientpool.getContents();
assertEquals(1, threads.size());
ServerThread serverThread = (ServerThread) threads.iterator().next();
field = ServerThread.class.getDeclaredField("socketWrapper");
field.setAccessible(true);
assertTrue(field.get(serverThread) instanceof ServerSocketWrapper);
ServerSocketWrapper serverWrapper = (ServerSocketWrapper) field.get(serverThread);
assertEquals(3000, serverWrapper.getTimeout());