@Test
public void testGenerateWssRemoteAddress() {

    HttpServletRequest request = mock(HttpServletRequest.class);
    when(request.getScheme()).thenReturn("https");
    when(request.getRemoteAddr()).thenReturn("localhost");
    when(request.getRemotePort()).thenReturn(8443);
    assertEquals("wss://localhost:8443", HttpTransportUtils.generateWsRemoteAddress(request));
}