void () { doTest("java.lang.IllegalArgumentException", "Find why 'cls' could be null or != String", "class X {static void test(Class<?> cls) {if (!String.class.equals(cls)) {throw new IllegalArgumentException();}}}"); }