### Question:
IdGenerator { public int issue(String canonicalName, String authorship, String year, Rank rank, TaxonomicStatus status, Kingdom kingdom) { return issue(canonicalName, authorship, year, rank, status, kingdom, null); } IdGenerator(IdLookup lookup, int idStart); int issue(String canonicalName, String authorship, String year, Rank rank, TaxonomicStatus status, Kingdom kingdom); int issue(String canonicalName, String authorship, String year, Rank rank, TaxonomicStatus status, Kingdom kingdom, Integer parentKey); int reissue(int id); void writeReports(File reportingDir);  }### Answer:
@Test public void testProParte() throws Exception { IdGenerator gen = new IdGenerator(newTestLookup(), 1000); assertEquals(1000, gen.issue("Admetidae", null, null, FAMILY, null, PLANTAE)); assertEquals(20, gen.issue("Admetidae", null, null, FAMILY, null, ANIMALIA)); assertEquals(1001, gen.issue("Admetidae", null, null, FAMILY, null, ANIMALIA)); assertEquals(17, gen.issue("Admetidae", "Troschel", null, FAMILY, null, ANIMALIA)); assertEquals(1002, gen.issue("Admetidae", "Troschel", null, FAMILY, null, ANIMALIA, 100)); assertEquals(18, gen.issue("Admetidae", "Troschel", null, FAMILY, null, ANIMALIA, 110)); assertEquals(19, gen.issue("Admetidae", "Troschel", null, FAMILY, null, ANIMALIA, 111)); assertEquals(1003, gen.issue("Admetidae", "Troschel", null, FAMILY, null, ANIMALIA, 200)); assertEquals(8710209, gen.issue("Bombylius scintillans", "Brunetti", "1909", SPECIES, null, ANIMALIA, 1673124)); assertEquals(5093664, gen.issue("Bombylius scintillans", "Brunetti", "1909", SPECIES, null, ANIMALIA)); }