### Question:
PostmanScenarioIndexerService { List<Assertion> extractAssertions(ItemWithScripts item) { if (item.getEvents() != null) { for (Event event : item.getEvents()) { if (event.getListen() == Listen.TEST) { return guessAssertions(event.getScript().getExec()); } } } return Collections.emptyList(); }  List<Scenario> extractScenarios(Source source, File zipFile);  }### Answer:
@Test public void extractAssertions_should_return_empty_list_when_item_events_is_null() { ItemWithScripts item = new ItemWithScripts() .withEvents(null); final List<Assertion> assertions = cut.extractAssertions(item); assertThat(assertions).isEmpty(); }