  @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));
  }