@Test
public void doesNotSupportNonStaticInnerClasses() {

    NodeMapper mapper = new NodeMapper();
    NodeDeserializationException e = Assertions.assertThrows(
            NodeDeserializationException.class,
            () -> mapper.deserialize(Node.objectNode(), NonStatic.class));
    assertThat(e.getMessage(), containsString("Cannot create non-static inner class"));
}