@Test
public void deserializesSets() {

    Node value = Node.fromStrings("a", "b");
    NodeMapper mapper = new NodeMapper();
    Set<String> result = mapper.deserializeCollection(value, Set.class, String.class);
    assertThat(result, instanceOf(HashSet.class));
    assertThat(result, contains("a", "b"));
}