### Question:
PostmanService { String toStep(NewmanScenario newmanScenario, int line) { if (line == LINE_PRE_REQUEST_SCRIPT) { return STEP_PRE_REQUEST_SCRIPT; } if (line == LINE_TEST_SCRIPT) { return STEP_TEST_SCRIPT; } Assertion[] assertions = newmanScenario.getExecution().getAssertions(); if (assertions != null && line >= 0 && assertions.length > line) { return assertions[line].getName(); } return buildRequestStep(newmanScenario.getItem().getRequest()); }  void parse(JsonParser parser, NewmanParsingResult result); List<ExecutedScenario> postProcess(Run run, NewmanParsingResult result, String newmanReportPath, AtomicInteger requestPosition); void deleteTempFiles(NewmanParsingResult newmanParsingResult); static final String FOLDER_DELIMITER; }### Answer:
@Test public void toStep_should_return_pre_request_script_for_minus_100000() { final String step = cut.toStep(null, -100000); assertThat(step).isEqualTo("<Pre-Request Script>"); }
@Test public void toStep_should_return_test_script_for_100000() { final String step = cut.toStep(null, 100000); assertThat(step).isEqualTo("<Test Script>"); }
@Test public void toStep_should_return_the_assertion_index() { NewmanScenario newmanScenario = new NewmanScenario() .withExecution(new Execution() .withAssertions(new Assertion[] { new Assertion("name0"), new Assertion("name1"), new Assertion("name2"), new Assertion("name3") })); final String step = cut.toStep(newmanScenario, 2); assertThat(step).isEqualTo("name2"); }
@Test public void toStep_should_return_the_assertion_index_even_at_index_0() { NewmanScenario newmanScenario = new NewmanScenario() .withExecution(new Execution() .withAssertions(new Assertion[] { new Assertion("name0"), new Assertion("name1") })); final String step = cut.toStep(newmanScenario, 0); assertThat(step).isEqualTo("name0"); }