public void testCreateClassQuickfix() throws CoreException, IOException {
IEditorPart editor = openEditor();
assertNotNull("Expects editor to open", editor);
assertTrue("Expects spring config editor", editor instanceof IConfigEditor);
StsBotConfigEditor configEditor = getBot().activeConfigEditor();
configEditor.navigateTo(21, 34);
// bot.sleep(StsTestUtil.WAIT_TIME);
StsTestUtil.waitForEditor(editor);
int quickfixListItemCount = configEditor.getQuickfixListItemCount();
assertTrue("Expects quick fixes", quickfixListItemCount > 1);
assertFalse("Expects no duplicate quick fixes", checkNoDuplicateQuickfixes(configEditor));
configEditor.getStyledText().setFocus();
configEditor.quickfix("Create class 'Account'");
bot.shell("New Class").activate();
SWTBotText text = bot.text(1);
assertNotNull(text);
String str = text.getText();
assertNotNull(str);
assertEquals("com.test.ui", str);
bot.button("Finish").click();
// bot.sleep(StsTestUtil.WAIT_TIME);
StsTestUtil.saveAndWaitForEditor(editor);
configEditor.getStyledText().setFocus();
quickfixListItemCount = configEditor.getQuickfixListItemCount();
assertTrue("Expects no quick fix", quickfixListItemCount == 1);
SWTBotEditor javaEditor = bot.editorByTitle("Account.java");
assertNotNull(javaEditor);
javaEditor.close();