}
TestSuite ts = (TestSuite) suiteMethod.invoke(instance, new Object[] {});
// If the returned suite contains a suite method, invoke it recursively
for (int i = 0; i < ts.testCount(); i++) {
Test test = ts.testAt(i);
if (test instanceof TestSuite) {
TestSuite testSuite = (TestSuite) test;
for (int j = 0; j < testSuite.testCount(); j++) {
Test subTest = testSuite.testAt(j);
try {
Class subTestClass = getTestClass(subTest);
if (subTestClass != null) {
Object[] subObjects = invokeSuite(subTestClass);
if (subObjects.length > 0) {