void () { DomFileElement<Foo> element = prepare("parent.xml", Foo.class); Bar bar = element.getRootElement().getBars().get(0); GenericAttributeValue<Integer> notStubbed = bar.getNotStubbed(); DomElement parent = notStubbed.getParent(); assertEquals(bar, parent); NotStubbed child = bar.getNotStubbeds().get(0); parent = child.getParent(); assertEquals(bar, parent); }