@Test
public void detectsWhenFromNodeFails() {

    NodeMapper mapper = new NodeMapper();
    NodeDeserializationException e = Assertions.assertThrows(
            NodeDeserializationException.class,
            () -> mapper.deserialize(Node.objectNode(), FailingFromNode.class));
    assertThat(e.getMessage(), equalTo(
            "Deserialization error at (/): unable to create software.amazon.smithy.model.node.NodeMapperTest.FailingFromNode "
            + "from {}: Unable to deserialize Node using fromNode method: nope"));
}