// loop through methods in class
boolean seenThisMethod = false;
GroovyMethodDoc[] methodDocs = clazz.methods();
for (int j = 0; j < methodDocs.length; j++) {
GroovyMethodDoc method = clazz.methods()[j];
if ("testPlainGroovyDocTool".equals(method.name())) {
seenThisMethod = true;
}
}
assertTrue(seenThisMethod);
}