I want to do this: Get a type from a name, and the fail a test if the message. I suppose it doesn't work because clazz is not a type. But how do I go about this?
Class<?> clazz=Class.forName("com.android.test."+myEnum.toString());
if(myObj instanceof clazz)
Assert.fail();