@Test
public void throwsWhenMapDoesNotHaveZeroArgConstructor() {

    Node object = Node.objectNode();
    NodeMapper mapper = new NodeMapper();
    NodeDeserializationException e = Assertions.assertThrows(
            NodeDeserializationException.class,
            () -> mapper.deserialize(object, NoZeroArgCtorMap.class));
    assertThat(e.getMessage(), equalTo(
            "Unable to find a zero-arg constructor for Map "
            + "software.amazon.smithy.model.node.NodeMapperTest$NoZeroArgCtorMap"));
}