@Test
public void testGetRemoteAddressNull() {

    HttpServletRequest httpServletRequest = Mockito.mock(HttpServletRequest.class);
    Mockito.when(httpServletRequest.getRemoteAddr()).thenReturn(null);
    assertNull(ServletRequestUtil.getRemoteAddress(httpServletRequest));
}