@Test
public void deserializesIntoValueAndCatchesErrors() {

    NodeMapper mapper = new NodeMapper();
    Node node = Node.parse("{\"foo\":true}");
    Baz baz = new Baz();
    NodeDeserializationException e = Assertions.assertThrows(
            NodeDeserializationException.class,
            () -> mapper.deserializeInto(node, baz));
    assertThat(e.getMessage(), startsWith(
            "Deserialization error at (/foo): unable to create java.lang.String from true"));
}