@Test
public void testUseForwardedForThreeHops()
{

    when(request.getRemoteAddr()).thenReturn("10.10.10.10");
    when(request.getHeaders("X-FORWARDED-FOR")).thenReturn(Collections.enumeration(ImmutableList.of("1.1.1.1, 2.2.2.2", "10.14.15.16, 10.11.12.13")));
    assertEquals(new ClientAddressExtractor().clientAddressFor(request), "2.2.2.2");
}