PigServer server = new PigServer(ExecType.LOCAL, props);
// test that schema was loaded correctly
server.registerQuery("X = load '"+BASIC_TABLE+"' using org.apache.howl.pig.HowlLoader();");
Schema dumpedXSchema = server.dumpSchema("X");
List<FieldSchema> Xfields = dumpedXSchema.getFields();
assertEquals(2,Xfields.size());
assertTrue(Xfields.get(0).alias.equalsIgnoreCase("a"));
assertTrue(Xfields.get(0).type == DataType.INTEGER);
assertTrue(Xfields.get(1).alias.equalsIgnoreCase("b"));