public void testAddRequestSuccess() throws Exception {
serverDispatcher.setServer(
1,
new RequestQueueServer<SimpleRequest>(
1, new SimpleRequestHandler()));
client = new RequestQueueClient(
1, socketFactory, failureReporter, MAX_RETRY, RETRY_WAIT,
QUEUE_SIZE);
SimpleRequest request = new SimpleRequest(1);
client.addRequest(request);
request.awaitCompleted(extraWait);