class 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();
    }

}