HttpConfiguration configuration = new HttpConfiguration();
configuration.setUrl("http://" + getHost() + ":" + getPort() + "/");
configuration.setThrowExceptionOnFailure(false);
HttpConnector connector = new HttpConnector(configuration);
connector.process(new Message());
}
@Test(expectedExceptions=SocketTimeoutException.class)
public void sholdThrowSocketTimeoutException() throws Exception {
testServer.register("/", new HttpRequestHandler() {