@Test
public void throwsWhenMapCtorThrows() {

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