### Question:
RatingService { public void contributorDeletedEventHandler(@Observes ContributorDeletedEvent event) { log.log(Level.FINE, "contributorDeletedEventHandler called for event {0}", event); if (event != null && event.getContributorCode() != null) { ratingPersistenceService.deleteRatingsForContributor(event.getContributorCode()); } else { log.warning("Invalid event " + event); } }  void contributorDeletedEventHandler(@Observes ContributorDeletedEvent event); void contentDeletedEventHandler(@Observes ContentDeletedEvent event); void handleContentRatingFields(@Observes ContentBeforeIndexedEvent event); void contributorMergedEventHandler(@Observes ContributorMergedEvent event); void contributorCodeChangedEventHandler(@Observes ContributorCodeChangedEvent event);  }### Answer:
@Test public void contributorDeletedEventHandler() { RatingService tested = getTested(); tested.contributorDeletedEventHandler(null); verifyZeroInteractions(tested.ratingPersistenceService); reset(tested.ratingPersistenceService); tested.contributorDeletedEventHandler(new ContributorDeletedEvent("id", null)); verifyZeroInteractions(tested.ratingPersistenceService); reset(tested.ratingPersistenceService); tested.contributorDeletedEventHandler(new ContributorDeletedEvent("id", "code")); verify(tested.ratingPersistenceService).deleteRatingsForContributor("code"); }