### Question:
RequestTimeout implements AnyRequestModifier { @Override public void applyTo(ServerDriverHttpUriRequest request) { request.setConnectionTimeout(connectionTimeout); request.setSocketTimeout(socketTimeout); } RequestTimeout(long connectionTimeout, long socketTimeout); @Override void applyTo(ServerDriverHttpUriRequest request);  }### Answer:
@Test public void timeoutIsAppliedCorrectlyToRequest() { ServerDriverHttpUriRequest request = new ServerDriverHttpUriRequest(new HttpGet()); RequestTimeout timeout = new RequestTimeout(1111, 2222); timeout.applyTo(request); assertThat(request.getConnectionTimeout(), is(1111L)); assertThat(request.getSocketTimeout(), is(2222L)); }