@Test
public void convertDocuments() throws Exception {

    // given
    
    Mockito.doReturn(matchableEntities).when(inputDocuments).mapToPair(Mockito.any());
    
    
    // execute
    
    JavaPairRDD<String, MatchableEntity> retEntities = coansysInputDocumentConverter.convertDocuments(inputDocuments);
    
    // assert
    
    assertTrue(retEntities == matchableEntities);
    
    verify(inputDocuments).mapToPair(convertToMatchableEntityFunction.capture());
    assertConvertToMatchableEntityFunction(convertToMatchableEntityFunction.getValue());
    
}