@Test
public void testGenerateWsRemoteAddress() {

    HttpServletRequest request = mock(HttpServletRequest.class);
    when(request.getScheme()).thenReturn("http");
    when(request.getRemoteAddr()).thenReturn("localhost");
    when(request.getRemotePort()).thenReturn(8080);
    assertEquals("ws://localhost:8080", HttpTransportUtils.generateWsRemoteAddress(request));
}