### Question:
GitHookServiceImpl implements GitHookService { @Override public void processGitEvent(final GitEvent event) { GitEventType eventType = event.getEventType(); if (eventType == null) { log.error("Unspecified git event type"); return; } if (!eventProcessors.containsKey(eventType)) { log.error("Unsupported event type: {}", eventType); return; } log.debug("Processing git hook with type: {}", eventType); eventProcessors.get(eventType).processEvent(event); } GitHookServiceImpl(final List<GitEventProcessor> processors); @Override void processGitEvent(final GitEvent event);  }### Answer:
@Test void shouldProcessGitEventTest() { gitHookService.processGitEvent(gitEvent); verify(gitPushEventProcessor, times(1)).processEvent(any()); }
@Test void shouldNotProcessGitEventDueToUnsupportedTypeTest() { gitEvent.setEventType(GitEventType.tag_push); gitHookService.processGitEvent(gitEvent); verify(gitPushEventProcessor, times(0)).processEvent(any()); }