void () { doCustomTest("method2", "class Main {" + " static final String NAME = \"Test\";" + " void foo() throws ReflectiveOperationException {" + " Class.forName(NAME).getMethod(\"<caret>method2\", int.class);" + " }" + "}"); }