### Question:
RestliServerComponent extends BaseRestliServerComponent<RestRequest> implements RestliServerApi { @Override public void handleRequest(final Http.Request request, final RestliTransportCallback callback) throws Exception { RestRequest restRequest = createRestRequest(request); if (restRequest == null) { callback.onResponse(TransportResponseImpl.success(notFound(request.uri()))); } else { _restliDispatcher.handleRequest(restRequest, createRequestContext(request), callback); } } @Inject  RestliServerComponent(CookiesConfiguration cookiesConfiguration,
      HttpDispatcher httpDispatcher, RestliUriResolver restliUriResolver); @Override void handleRequest(final Http.Request request, final RestliTransportCallback callback);  }### Answer:
@Test @UseDataProvider("testRemoteAddressData") public void testRemoteAddress(final String remoteAddress) throws Exception { Capture<RequestContext> captureContext = newCapture(); _httpDispatcher.handleRequest(EasyMock.<RestRequest>anyObject(), capture(captureContext), anyObject()); expectLastCall(); replay(_httpDispatcher); Http.Request request = createDefaultRequestBuilder().remoteAddress(remoteAddress).bodyRaw(new byte[0]).build(); restliServer.handleRequest(request, new RestliTransportCallback()); verify(_httpDispatcher); assertEquals(remoteAddress, captureContext.getValue().getLocalAttr(R2Constants.REMOTE_ADDR)); }