@Test
public void deserializesWithBuilderCatchesErrorCreatingBuilder() {

    Node value = Node.parse("{\"foo\": \"foo\"}");
    NodeMapper mapper = new NodeMapper();
    NodeDeserializationException e = Assertions.assertThrows(
            NodeDeserializationException.class,
            () -> mapper.deserialize(value, ClassThrowingBuilderMethod.class));
    assertThat(e.getMessage(), startsWith(
            "Deserialization error at (/): unable to create "
            + "software.amazon.smithy.model.node.NodeMapperTest.ClassThrowingBuilderMethod from "
            + "{\"foo\":\"foo\"}: Unable to deserialize Node using a builder: nope"));
}