StmtsDocList implements Iterable<StmtsDoc> { public List<StmtDef> getStmts() { return getStmts(""); } StmtsDocList(RawStmtsDocList rawStmtsDocList); List<StmtsDoc> getStmtDocs(String tagFilter); List<StmtsDoc> getStmtDocs(); List<StmtDef> getStmts(); List<StmtDef> getStmts(String tagFilterSpec); @Override Iterator<StmtsDoc> iterator(); Map<String,String> getDocBindings();  }
@Test public void testFilteredStmts() { List<StmtDef> stmts = doclist.getStmts(""); assertThat(stmts).hasSize(6); stmts = doclist.getStmts("root1:value23"); assertThat(stmts).hasSize(2); }