@Test
public void matchCitations_4() throws IOException {

    
    
    // given
    
    String citationPath = "src/test/resources/heuristic/unmatched-3";
    
    String documentPath = "src/test/resources/heuristic/documents";
    
    HeuristicHashCitationMatcher heuristicMatcher = new HeuristicHashCitationMatcher(
            createMatchableEntityHasher(new CitationNameYearHashGenerator()), 
            createMatchableEntityHasher(new DocumentNameYearHashGenerator()), 10000);
    
    
    JavaPairRDD<String, MatchableEntity> citations = loadEntities(sparkContext, citationPath);
    
    JavaPairRDD<String, MatchableEntity> documents = loadEntities(sparkContext, documentPath);
    
    
    // execute
    
    HeuristicHashMatchingResult matchedResult = heuristicMatcher.matchCitations(citations, documents, false);
    
    
    // assert
    
    assertMatchedCitations(matchedResult.getCitDocIdPairs().collect(), "src/test/resources/heuristic/heuristic-out-4");
    
    assertNull(matchedResult.getUnmatchedCitations());
    
}