public String anonymize(final ParseTree tree) {
    return build(tree);
  }
@Test
  public void shouldThrowWhenUnparseableStringProvided() {
    // Given:
    final String nonsenseUnparsedQuery = "cat";
    // Then:
    Assert.assertThrows(ParsingException.class, () -> anon.anonymize(nonsenseUnparsedQuery));
  }