void () { myFixture.configureByText(JavaFileType.INSTANCE, """ import org.testng.annotations.Test; import static org.testng.Assert.*; class TestCase { @Test public void test() { <warning descr="'assertEquals()' without message"><caret>assertEquals</warning>(1, 1); } }"""); myFixture.enableInspections(AssertWithoutMessageInspection.class); myFixture.testHighlighting(true, false, false); final IntentionAction intention = myFixture.getAvailableIntention("Add error message"); assertNotNull(intention); myFixture.launchAction(intention); NonBlockingReadActionImpl.waitForAsyncTaskCompletion(); myFixture.checkResult(""" import org.testng.annotations.Test; import static org.testng.Assert.*; class TestCase { @Test public void test() { assertEquals(1, 1, "<caret>"); } }"""); }