void () { TemplateManagerImpl.setTemplateTesting(myFixture.getTestRootDisposable()); myFixture.configureByFile(getTestName(true) + ".java"); myFixture.type('\t'); TemplateState templateState = TemplateManagerImpl.getTemplateState(myFixture.getEditor()); assertNotNull(templateState); assertFalse(templateState.isFinished()); myFixture.type("Integer"); templateState.nextTab(); assertTrue(templateState.isFinished()); myFixture.checkResultByFile(getTestName(true) + "_after.java", true); }