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

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

    assertEquals("dummy.xq", description);
  }
  public void testFunctionUsageType() {
    String type = provider.getType(exampleFunctionDeclaration().getFunctionName());

    assertEquals("function", type);
  }
  public void testFunctionUsagesDescriptiveName() {
    String description =
        provider.getDescriptiveName(exampleFunctionDeclaration().getFunctionName());

    assertEquals("example", description);
  }
  public void testNamespaceNameInImportUsageType() {
    String type = provider.getType(exampleImport().getNamespacePrefix());

    assertEquals("namespace prefix", type);
  }
  public void testNamespaceNameInModuleUsageType() {
    String type = provider.getType(exampleModuleDeclaration());

    assertEquals("namespace prefix", type);
  }
  public void testNamespaceNameInImportUsagesDescriptiveName() {
    String description = provider.getDescriptiveName(exampleImport().getNamespacePrefix());

    assertEquals("dummy", description);
  }
  public void testNamespaceNameInModuleUsagesDescriptiveName() {
    String description = provider.getDescriptiveName(exampleModuleDeclaration());

    assertEquals("example", description);
  }
  public void testPrefixUsageType() {
    String type = provider.getType(exampleFunctionDeclaration().getFunctionName().getPrefix());

    assertEquals("namespace prefix", type);
  }
  public void testNamespaceNameUsagesDescription() {
    String description =
        provider.getNodeText(exampleNamespaceDeclaration().getNamespacePrefix(), true);

    assertEquals("example", description);
  }
  public void testVariableUsageType() {
    String type = provider.getType(exampleVariableDeclaration().getVarName());

    assertEquals("variable", type);
  }
  public void testVariableUsagesDescriptiveName() {
    String description = provider.getNodeText(exampleVariableDeclaration().getVarName(), true);

    assertEquals("example", description);
  }