@Test
public void convertsComplexObjectsToNode() {

    List<Map<String, Foo>> value = new ArrayList<>();
    Map<String, Foo> mappings = new LinkedHashMap<>();
    mappings.put("hi", new Foo());
    value.add(mappings);
    NodeMapper mapper = new NodeMapper();
    Node result = mapper.serialize(value);
    Node.assertEquals(result, Node.parse("[ {\"hi\": { \"baz\": \"baz\", \"bar\": \"bar\" } } ]"));
}