private static boolean isUnitTest(ClassDoc c) {
    if (c == null) {
      return false;

    } else if (c.qualifiedName().equals(TestCase.class.getName())) {
      return true;

    } else {
      return isUnitTest(c.superclass());
    }
  }
Returns whether or not a class is a unit test. That is, whether or not it is a subclass of
{@link junit.framework.TestCase}.
geode-core/src/test/java/org/apache/geode/UnitTestDoclet.java