void () { myFixture.addFileToProject("foo.txt", ""); myFixture.configureByText("FooBar.java", "class FooBar { String barName = \"foo<caret>\"}"); complete(); myFixture.checkResult("class FooBar { String barName = \"foo.txt\"}"); }