void (@NonNls String newName, String className) { myFixture.configureByFiles(getTestName(true) + ".fxml", className.replace('.', '/') + ".java"); final MapDataContext dataContext = new MapDataContext(); dataContext.put(CommonDataKeys.EDITOR, getEditor()); dataContext.put(PsiElementRenameHandler.DEFAULT_NAME, newName); final JavaFxPropertyRenameHandler renameHandler = new JavaFxPropertyRenameHandler(); assertTrue(renameHandler.isAvailableOnDataContext(dataContext)); renameHandler.invoke(getProject(), getEditor(), null, dataContext); myFixture.checkResultByFile(getTestName(true) + "_after.fxml"); final PsiClass psiClass = myFixture.findClass(className); assertNotNull(psiClass); final String propName = newName.substring(0, 1).toUpperCase() + newName.substring(1); assertMethodExists(psiClass, "set" + propName); }