### Question:
RatingService { public void contentDeletedEventHandler(@Observes ContentDeletedEvent event) { log.log(Level.FINE, "contentDeletedEventHandler called for event {0}", event); if (event != null && event.getContentId() != null) { ratingPersistenceService.deleteRatingsForContent(event.getContentId()); } 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 contentDeletedEventHandler() { RatingService tested = getTested(); tested.contentDeletedEventHandler(null); verifyZeroInteractions(tested.ratingPersistenceService); reset(tested.ratingPersistenceService); tested.contentDeletedEventHandler(new ContentDeletedEvent(null)); verifyZeroInteractions(tested.ratingPersistenceService); reset(tested.ratingPersistenceService); tested.contentDeletedEventHandler(new ContentDeletedEvent("id")); verify(tested.ratingPersistenceService).deleteRatingsForContent("id"); }