@Test
public void cannotSerializeMapsWhenKeyIsNotString() {

    Map<List<String>, String> badMap = new HashMap<>();
    badMap.put(ListUtils.of("a"), "a");
    NodeMapper mapper = new NodeMapper();
    Assertions.assertThrows(NodeSerializationException.class, () -> {
        mapper.serialize(badMap);
    });
}