void () { final ElementStub rootStub = getRootStub("foo.xml"); assertEquals("", rootStub.getValue()); final Stub fooStub = assertOneElement(rootStub.getChildrenStubs()); final ElementStub fooElementStub = assertInstanceOf(fooStub, ElementStub.class); assertEquals("", fooElementStub.getValue()); final Stub idStub = ContainerUtil.getFirstItem(fooStub.getChildrenStubs()); final ElementStub idElementStub = assertInstanceOf(idStub, ElementStub.class); assertEquals("foo", idElementStub.getValue()); }