void () { myFixture.configureByFiles("src/rename/Foo.java", "content/anno/rename/annotations.xml"); myFixture.renameElementAtCaret("Bar"); myFixture.checkResultByFile("content/anno/rename/annotations.xml", "content/anno/rename/annotations_after.xml", true); }