{
final DiffNode node1 = new DiffNode(List.class);
final DiffNode node2 = new DiffNode(new CollectionItemAccessor("foo"), String.class);
node1.addChild(node2);
assertThat(node1.childCount()).isEqualTo(1);
assertThat(node1.getChild(new CollectionItemElementSelector("foo"))).isSameAs(node2);
assertThat(node2.getParentNode()).isSameAs(node1);
}