### Question:
ParagraphCompletion implements Completion { @Nonnull @Override public CompletionItemKind getKind() { return CompletionItemKind.Method; }  @Nonnull @Override Collection<String> getCompletionSource(MyDocumentModel document); @Nonnull @Override String getSortOrderPrefix(); @Nonnull @Override CompletionItemKind getKind();  }### Answer:
@Test void testParagraphCompletion() { MyDocumentModel document = createModel(); Set<Completion> completionSet = new HashSet<>(); completionSet.add(new ParagraphCompletion()); Completions completions = new Completions(completionSet); List<CompletionItem> completionItems = completions.collectFor(document, createCompletionParams()).getItems(); assertEquals(2, completionItems.size()); assertTrue( completionItems.get(0).getLabel().contains("100-Test") || completionItems.get(0).getLabel().contains("000-Main-Logic"), "100-Test"); assertTrue( completionItems.get(1).getLabel().contains("100-Test") || completionItems.get(1).getLabel().contains("000-Main-Logic"), "000-Main-Logic"); assertEquals(CompletionItemKind.Method, completionItems.get(0).getKind()); }