### Question:
GenericDbSchema extends HashMap<String, ArrayList<String>> { public Parser parser(String fileType, File file, String encoding, char sep) throws DatamartException { return this.new Parser(fileType, file, encoding, sep); } GenericDbSchema(String filename); void load(); Record record(String fileType); Parser parser(String fileType, File file, String encoding, char sep);  }### Answer:
@Test public void testParser() throws Exception { String schemaFilename = getClass().getResource("/SCHEMA.txt").getFile(); GenericDbSchema schema = new GenericDbSchema(schemaFilename); schema.load(); String organismsFilename = getClass().getResource("/ORGANISMS.txt").getFile(); Parser parser = schema.parser("ORGANISMS", new File(organismsFilename), "UTF8", '\t'); int i=0; for (Record record: parser) { i+=1; if (i == 4) { assertEquals(record.get("NAME"), "H. sapiens"); } } parser.close(); assertEquals(7, i); }