public void testTemplateProcessing() {
helper.setup(path, "", 0, 0, false);
autocompleter.findAutocompletions(helper.editor.getSelection(), CTRL_SPACE);
AutocompleteProposal proposal = new TemplateProposal("simple", "simple (%c) <%i%n>");
AutocompleteResult commonResult = autocompleter.computeAutocompletionResult(
new ProposalWithContext(SyntaxType.NONE, proposal, new Context("")));
assertTrue("result type", commonResult instanceof DefaultAutocompleteResult);
DefaultAutocompleteResult result = (DefaultAutocompleteResult) commonResult;
assertEquals("autocompletion text", "simple () <\n \n>", result.getAutocompletionText());
assertEquals("jump length", 8, result.getJumpLength());
assertEquals("backspace count", 0, result.getBackspaceCount());