@Udf
  public String extractQuery(
      @UdfParameter(description = "a valid URL to extract a query from") final String input) {
    return UrlParser.extract(input, URI::getQuery);
  }
@Test
  public void shouldExtractQueryIfPresent() {
    assertThat(extractUdf.extractQuery("https://docs.confluent.io/current/ksql/docs/syntax-reference.html?a=b&foo%20bar=baz&c=d&e#scalar-functions"), equalTo("a=b&foo bar=baz&c=d&e"));
  }