@Test
@SuppressWarnings("unchecked")
public void deserializesCollection() {

    Node value = Node.fromStrings("a", "b");
    NodeMapper mapper = new NodeMapper();
    Object result = mapper.deserialize(value, Collection.class);
    assertThat(result, instanceOf(ArrayList.class));
    assertThat((ArrayList<Object>) result, contains("a", "b"));
}