void () { final MyElement element = createElement(""); final MyFooConcreteElement foo = element.addFooChild(); final MyElement child = element.addChildElement(); final MyBarConcreteElement bar = element.addBarChild(); assertEquals(Arrays.asList(foo, bar, child), element.getCompositeList()); }