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

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