public void testFreemarkerContentAssistIsShowed() {
IEditorPart part = WorkbenchUtils.openEditor(TEST_EDITOR_PROJECT + IPath.SEPARATOR + EDITPROPERTY_XHTML_FTL);
assertTrue(part instanceof FreemarkerMultiPageEditor);
FreemarkerMultiPageEditor editor = (FreemarkerMultiPageEditor)part;
CompletionProcessor proc = new CompletionProcessor(editor.getEditor());
IFindReplaceTarget find = (IFindReplaceTarget)editor.getAdapter(IFindReplaceTarget.class);
int pos = find.findAndSelect(0, "<#", true, false, false); //$NON-NLS-1$
ICompletionProposal[] proposals = proc.computeCompletionProposals(editor.getEditor().getTextViewer(),pos+2);
assertTrue(proposals.length>0);
pos = find.findAndSelect(0, "label(componentProperty.name)", true, false, false); //$NON-NLS-1$
proposals = proc.computeCompletionProposals(editor.getEditor().getTextViewer(),pos);
assertTrue(proposals.length>0);
}