@Test
void should_report_error_if_qualifier_is_not_index() {

  runInScope(new Symbol(Namespace.FIELD_NAME, "a"), ARRAY, () -> {
    SyntaxCheckException error = assertThrows(SyntaxCheckException.class,
        () -> qualifierAnalyzer.unqualified("a", "integer_value"));
    assertEquals("The qualifier [a] of qualified name [a.integer_value] "
            + "must be an index name or its alias", error.getMessage());
  });
}