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