renamed mockito argument into rd (RepositoryDocument)