### Question:
ExecutedScenarioTransformer { ExecutedScenarioDTO toDto(ExecutedScenario scenario) { ExecutedScenarioDTO result = new ExecutedScenarioDTO(); result.setId(0L); if (null != scenario) { this.fillDto(result, scenario); } return result; }    }### Answer:
@Test public void toDto_should_return_executed_scenario() { Date start = new Date(); ExecutedScenario value = new ExecutedScenario( 1L, 57L, null, "FeatureFile", "FeatureName", "FeatureTags", "tags", "severity", "name", "cucumberId", 1, "content", start, "screenshotUrl", "videoUrl", "logsUrl", "httpRequestsUrl", "javaScriptErrorsUrl", "diffReportUrl", "cucumberReportUrl", "apiServer", "seleniumNode", Collections.emptySet()); ExecutedScenarioDTO result = cut.toDto(value); Assertions.assertThat(result).isNotNull(); checkValidScenario(result, start); }
@Test public void toDto_should_return_empty_scenario_if_null() { ExecutedScenarioDTO result = this.cut.toDto(null); Assertions.assertThat(result).isNotNull(); Assertions.assertThat(result.getId()).isEqualTo(0L); checkDefaultValues(result); }