### Question:
NotificationService extends AbstractService { public void triggerEvent(final Project project, final ProjectEvent event) { notNull(project, "project"); notNull(event, "event"); try { restTemplate.postForEntity(ProjectEvent.URI, event, Void.class, project.getId()); } catch (GoodDataRestException | RestClientException e) { throw new GoodDataException("Unable to post project event.", e); } } NotificationService(final RestTemplate restTemplate, final GoodDataSettings settings); void triggerEvent(final Project project, final ProjectEvent event); Channel createChannel(final Account account, final Channel channel); void removeChannel(final Channel channel); Subscription createSubscription(final Project project, final Account account, final Subscription subscription); void removeSubscription(final Subscription subscription);  }### Answer:
@Test(expectedExceptions = IllegalArgumentException.class) public void testTriggerNullEvent() throws Exception { notificationService.triggerEvent(project, null); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testTriggerNullProject() throws Exception { notificationService.triggerEvent(null, mock(ProjectEvent.class)); }