NSMutableSet theClassNames = new NSMutableSet();
Enumeration bundleEnum = bundles().objectEnumerator();
while (bundleEnum.hasMoreElements()) {
NSBundle bundle = (NSBundle)bundleEnum.nextElement();
if (!bundle.name().equals(thisBundleName)) {
Enumeration classNameEnum = bundle.bundleClassNames().objectEnumerator();
while (classNameEnum.hasMoreElements()) {
String className = (String)classNameEnum.nextElement();
if (className != null
&& ( className.endsWith( "Test" ) || className.endsWith( "TestCase" ) || className.indexOf("tests.") == 0 || className.indexOf(".tests.") > 0)
&& !className.startsWith( "junit." )