private static SortedMap<String, Method> getAllThreads(
	    MultithreadedTestCase test) {
	SortedMap<String, Method> result = new TreeMap<String, Method>();
	for (Class<?> eachClass : getSuperClasses(test.getClass())) {
	    Method[] methods = eachClass.getDeclaredMethods();
	    for (Method method : methods) {
		final Threaded annotation = method
			.getAnnotation(Threaded.class);
		if (annotation != null)
		    result.put("".equals(annotation.value()) ? method.getName()
			    : annotation.value(), method);
	    }
	}
	return result;
    }