void (String expected) { myFixture.configureByFile(getTestName(false) + ".java"); myFixture.launchAction(myFixture.findSingleIntention("Copy string ")); final Object result = CopyPasteManager.getInstance().getContents(DataFlavor.stringFlavor); assertEquals(expected, result); }