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());
// Verify that "timeout" is used in the absence of "callbackTimeout".
field = ServerInvoker.class.getDeclaredField("callbackHandlers");
field.setAccessible(true);
Map callbackHandlers = (Map) field.get(serverInvoker);