void () { ExceptionFromCatchWhichDoesntWrapInspection tool = new ExceptionFromCatchWhichDoesntWrapInspection(); tool.ignoreCantWrap = true; myFixture.enableInspections(tool); myFixture.testHighlighting(getTestName(false) + ".java"); }