mockHttpRequests(_requestFactory);
Element params = createHarvesterParams(_harvesterType);
customizeParams(params);
final String harvesterUuid = _harvestManager.addHarvesterReturnUUID(params);
AbstractHarvester _harvester = _harvestManager.getHarvester(harvesterUuid);
_harvester.init(params, context);
_harvester.invoke();
final Element result = _harvester.getResult();
assertEqualsText(""+getExpectedAdded(), result, "added");
assertEqualsText(""+ getExpectedTotalFound(), result, "total");
assertEqualsText(""+ getExpectedBadFormat(), result, "badFormat");
assertEqualsText(""+ getExpectedDoesNotValidate(), result, "doesNotValidate");
assertEqualsText(""+ getExpectedUnknownSchema(), result, "unknownSchema");
assertEqualsText(""+ getExpectedUpdated(), result, "updated");
assertEqualsText(""+ getExpectedRemoved(), result, "removed");
assertExpectedErrors(_harvester.getErrors());
_requestFactory.assertAllRequestsCalled();
assertEquals(1, _harvestHistoryRepository.count());