@Test
public void pathResolvesToNullInMessage() {

  JsonKeyEncoder encoder = new JsonKeyEncoder(() -> KeyPathParser.parse("$.c"), random);
  assertThat(encoder.encode(message), is(asBytes(message.get("c").hashCode())));
}