public abstract boolean hasError();
@Test
  public void testAliases() throws IOException
  {
    String[][] inputs =
    {
        {
          "{ \"name\" : \"a\", \"type\" : \"fixed\", \"size\" : 5, \"aliases\" : [ \"b\", \"c.d\" ] }",
          "a",
          "b",
          "c.d"
        },
        {
          "{ \"name\" : \"a.a\", \"type\" : \"fixed\", \"size\" : 5, \"aliases\" : [ \"b\", \"c.d\" ] }",
          "a.a",
          "a.b",
          "c.d"
        },
        {
          "{ \"name\" : \"a\", \"type\" : \"record\", \"aliases\" : [ \"b\", \"c.d\" ], \"fields\" : [ " +
              "{ \"name\" : \"a1\", \"type\" : \"a\" }," +
              "{ \"name\" : \"a2\", \"type\" : \"b\" }," +
              "{ \"name\" : \"a3\", \"type\" : \"c.d\" }" +
          "] }",
          "a",
          "b",
          "c.d"
        }
    };

    boolean debug = false;

    for (String[] input : inputs)
    {
      String schema = input[0];
      if (debug) out.println(schema);
      PegasusSchemaParser parser = schemaParserFromString(schema);
      if (debug) out.println(parser.errorMessage());
      assertFalse(parser.hasError());
      for (int i = 1; i < input.length; ++i)
      {
        DataSchema found = parser.lookupName(input[i]);
        assertTrue(found != null);
      }
    }
  }