@Test
public void jsonNodeHashcode() throws Exception {

  @SuppressWarnings("resource")
  Function<JsonNode, Integer> fn = new MessageHashCodeFunctionSupplier(() -> KeyPathParser.parse("$.a"), random)
      .get();
  assertThat(fn.apply(message), is(message.get("a").hashCode()));
}