public void testFileUsagesDescription() {
    XQueryFile file = XQueryElementFactory.createFile(getProject(), "example contents");

    String description = provider.getNodeText(file, true);

    assertEquals("dummy.xq", description);
  }
 private XQueryModuleImport exampleImport() {
   return (XQueryModuleImport)
       XQueryElementFactory.createImportPath(getProject(), "'path.xq'").getParent().getParent();
 }
 private XQueryNamespacePrefix exampleModuleDeclaration() {
   return XQueryElementFactory.createModuleDeclarationName(getProject(), "example");
 }
 private XQueryNamespaceDecl exampleNamespaceDeclaration() {
   return XQueryElementFactory.createNamespaceDeclaration(getProject(), "example");
 }
 private XQueryVarDecl exampleVariableDeclaration() {
   return XQueryElementFactory.createVariableDeclaration(getProject(), "local", "example");
 }
 private XQueryFunctionDecl exampleFunctionDeclaration() {
   return XQueryElementFactory.createFunctionDeclaration(getProject(), "local", "example");
 }