How to narrow Class<?> to Class<? extends junit.framework.TestCase>
What I am trying to do is
load a class using Class.forName
Class<?> clazz=Class.forName(......);
and pass that loaded class to a method
addTestSuite having the following signature
addTestSuite(Class<?extends junit.framework.TestCase>?
Now Class.forName(.....) returnsClass<?> Object and if I try to pass it to theaddTestSuite method it gives compiler error because it expects
an Object of typeClass<? extends junit.framework.TestCase>.My question is how to narrow down object of Class<?> to Class<? extends junit.framework.TestCase>.

