@Test
public void serializesCollectionsAndArrays() {

    NodeMapper mapper = new NodeMapper();
    List<String> foos = ListUtils.of("a", "b", "c");
    String[] foosArray = foos.toArray(new String[0]);
    Node result1 = mapper.serialize(foos);
    Node result2 = mapper.serialize(foosArray);
    assertThat(result1, equalTo(result2));
    assertThat(result1, equalTo(Node.fromStrings("a", "b", "c")));
}