public static boolean acceptEndpoint(String endpointUrl) {
      return endpointUrl != null && endpointUrl.matches(ENDPOINT_PATTERN_STRING);
   }
@Test
   public void testAcceptEndpoint() {
      assertTrue(WebSocketMessageConsumptionTask.acceptEndpoint("ws://localhost:4000/"));

      assertTrue(WebSocketMessageConsumptionTask.acceptEndpoint("ws://localhost:4000/websocket"));

      assertTrue(WebSocketMessageConsumptionTask
            .acceptEndpoint("ws://microcks-ws.example.com/api/ws/Service/1.0.0/channel/sub/path"));
   }