@Test
 public void testCompletions() {
   final Node node = assist.findNode();
   // Check that we did find a node
   Assert.assertNotNull(
       "No node found at " + assist.getRow() + ":" + assist.getColumn() + " for text " + nodeText,
       node);
   // Check that the node we found is the one we were actually looking for
   Assert.assertTrue(checkCompletion.startsWith(assist.getTextAtLocation()));
   List<Map<String, Object>> comps = assist.getCompletionsAsMap();
   String found = null;
   for (Map<String, Object> o : comps) {
     String comp = (String) o.get("insert");
     if (comp.startsWith(checkCompletion)) {
       found = comp;
     }
   }
   // Check that the completions contain the expected one
   Assert.assertNotNull("Completion '" + checkCompletion + "' not found in " + comps, found);
 }