Program: 39800
Project: 39800
Buggy source:
@Test public void testOenanthe() throws IOException {
  ExtendedRecord record=ExtendedRecordCustomBuilder.create().kingdom("String_Node_Str").name("String_Node_Str").authorship("String_Node_Str").rank(Rank.GENUS.name()).id(TEST_RECORD_ID).build();
  enqueueResponse(OENANTHE_RESPONSE);
  TaxonRecord taxonRecord=new TaxonRecord();
  TaxonomyInterpreter interpreter=TaxonomyInterpreter.taxonomyInterpreter(taxonRecord,WS_PROPERTIES_PATH);
  interpreter.apply(record);
  Map<Rank,RankedName> ranksResponse=taxonRecord.getClassification().stream().collect(Collectors.toMap(RankedName::getRank,rankedName -> rankedName));
  Assert.assertEquals(3034893,taxonRecord.getUsage().getKey().intValue());
  Assert.assertEquals(6,ranksResponse.get(Rank.KINGDOM).getKey().intValue());
  Assert.assertEquals("String_Node_Str",taxonRecord.getUsage().getName());
  record=ExtendedRecordCustomBuilder.create().kingdom("String_Node_Str").name("String_Node_Str").authorship("String_Node_Str").rank(Rank.GENUS.name()).id(TEST_RECORD_ID).build();
  enqueueResponse(OENANTHE_2_RESPONSE);
  interpreter.apply(record);
  ranksResponse=taxonRecord.getClassification().stream().collect(Collectors.toMap(RankedName::getRank,rankedName -> rankedName));
  Assert.assertEquals(3034893,taxonRecord.getUsage().getKey().intValue());
  Assert.assertEquals(6,ranksResponse.get(Rank.KINGDOM).getKey().intValue());
  Assert.assertEquals("String_Node_Str",taxonRecord.getUsage().getName());
  record=ExtendedRecordCustomBuilder.create().kingdom("String_Node_Str").name("String_Node_Str").authorship("String_Node_Str").rank(Rank.GENUS.name()).id(TEST_RECORD_ID).build();
  enqueueResponse(OENANTHE_3_RESPONSE);
  interpreter.apply(record);
  ranksResponse=taxonRecord.getClassification().stream().collect(Collectors.toMap(RankedName::getRank,rankedName -> rankedName));
  Assert.assertEquals(2492483,taxonRecord.getUsage().getKey().intValue());
  Assert.assertEquals(1,ranksResponse.get(Rank.KINGDOM).getKey().intValue());
  Assert.assertEquals("String_Node_Str",taxonRecord.getUsage().getName());
}

Fixed version (ground truth):
@Test public void testOenanthe() throws IOException {
  ExtendedRecord record=ExtendedRecordCustomBuilder.create().kingdom("String_Node_Str").name("String_Node_Str").authorship("String_Node_Str").rank(Rank.GENUS.name()).id(TEST_RECORD_ID).build();
  enqueueResponse(OENANTHE_RESPONSE);
  TaxonRecord taxonRecord=new TaxonRecord();
  TaxonomyInterpreter interpreter=TaxonomyInterpreter.taxonomyInterpreter(taxonRecord,WS_PROPERTIES_PATH);
  Interpretation<ExtendedRecord> interpretation=interpreter.apply(record);
  Map<Rank,RankedName> ranksResponse=taxonRecord.getClassification().stream().collect(Collectors.toMap(RankedName::getRank,rankedName -> rankedName));
  Assert.assertNotNull(interpretation);
  Assert.assertEquals(3034893,taxonRecord.getUsage().getKey().intValue());
  Assert.assertEquals(6,ranksResponse.get(Rank.KINGDOM).getKey().intValue());
  Assert.assertEquals("String_Node_Str",taxonRecord.getUsage().getName());
  record=ExtendedRecordCustomBuilder.create().kingdom("String_Node_Str").name("String_Node_Str").authorship("String_Node_Str").rank(Rank.GENUS.name()).id(TEST_RECORD_ID).build();
  enqueueResponse(OENANTHE_2_RESPONSE);
  Interpretation<ExtendedRecord> interpretationOneanthe2=interpreter.apply(record);
  ranksResponse=taxonRecord.getClassification().stream().collect(Collectors.toMap(RankedName::getRank,rankedName -> rankedName));
  Assert.assertNotNull(interpretationOneanthe2);
  Assert.assertEquals(3034893,taxonRecord.getUsage().getKey().intValue());
  Assert.assertEquals(6,ranksResponse.get(Rank.KINGDOM).getKey().intValue());
  Assert.assertEquals("String_Node_Str",taxonRecord.getUsage().getName());
  record=ExtendedRecordCustomBuilder.create().kingdom("String_Node_Str").name("String_Node_Str").authorship("String_Node_Str").rank(Rank.GENUS.name()).id(TEST_RECORD_ID).build();
  enqueueResponse(OENANTHE_3_RESPONSE);
  Interpretation<ExtendedRecord> interpretationOneanthe3=interpreter.apply(record);
  ranksResponse=taxonRecord.getClassification().stream().collect(Collectors.toMap(RankedName::getRank,rankedName -> rankedName));
  Assert.assertNotNull(interpretationOneanthe3);
  Assert.assertEquals(2492483,taxonRecord.getUsage().getKey().intValue());
  Assert.assertEquals(1,ranksResponse.get(Rank.KINGDOM).getKey().intValue());
  Assert.assertEquals("String_Node_Str",taxonRecord.getUsage().getName());
}