void () { myFixture.addClass("package foo; public class FileInputStreamSmth {}"); myFixture.configureByFile(getTestName(false) + ".java"); PsiDocumentManager.getInstance(getProject()).commitAllDocuments(); type('\b'); PsiDocumentManager.getInstance(getProject()).commitAllDocuments(); myFixture.complete(CompletionType.BASIC, 2); assertNotNull(getLookup()); type('.'); checkResult(); }