@Udf
  public String extractProtocol(
      @UdfParameter(description = "a valid URL to extract a protocl from") final String input) {
    return UrlParser.extract(input, URI::getScheme);
  }
@Test
  public void shouldExtractProtocolIfPresent() {
    assertThat(
            extractUdf.extractProtocol("https://docs.confluent.io/current/ksql/docs/syntax-reference.html#scalar-functions"),
            equalTo("https"));
  }