@Test
public void testGetRemoteAddressNoLoopBack() {

    HttpServletRequest httpServletRequest = Mockito.mock(HttpServletRequest.class);
    Mockito.when(httpServletRequest.getRemoteAddr()).thenReturn("1.2.3.4");
    assertEquals(ServletRequestUtil.getRemoteAddress(httpServletRequest), "1.2.3.4");
}