clazz != null && AbstractReflectivePortletTest.class.isAssignableFrom(clazz);
clazz = clazz.getSuperclass()) {
// debugWithName("Checking class: " + clazz.getName());
Method[] methods = clazz.getDeclaredMethods();
String phase;
TestPhase testPhase;
for (int i = 0; i < methods.length; i++) {
int mod = methods[i].getModifiers();
testPhase = methods[i].getAnnotation(TestPhase.class);
phase = testPhase != null ? testPhase.value() : defaultPhase;
if ((Modifier.isPublic(mod) || Modifier.isProtected(mod))
&& lifecyclePhase.equals(phase)
&& !Modifier.isAbstract(mod)
&& methods[i].getName().startsWith("check")) {
// debugWithName(" - got check method: " + methods[i].getName());