}
private void check(String expected, String initial, int proposals) throws BadLocationException {
Document doc = new Document(initial);
PySelection ps = new PySelection(doc, 0, 0);
AssistDocString assist = new AssistDocString("@");
List<ICompletionProposal> props = assist.getProps(ps, null, null, null, null, ps.getAbsoluteCursorOffset());
assertEquals(proposals, props.size());
if (props.size() > 0) {
props.get(0).apply(doc);
String expect = StringUtils.replaceNewLines(expected, "\n");
String obtained = StringUtils.replaceNewLines(doc.get(), "\n");