### Question:
ExecutedScenarioTransformer { ExecutedScenarioWithTeamIdsAndErrorsAndProblemsDTO toFullyDetailledDto(ExecutedScenario scenario) { ExecutedScenarioWithTeamIdsAndErrorsAndProblemsDTO result = new ExecutedScenarioWithTeamIdsAndErrorsAndProblemsDTO(); result.setId(0L); if (null != scenario) { this.fillDto(result, scenario); result.setHandling(scenario.getHandling()); result.setErrors(errorTransformer.toDtos(scenario.getErrors())); } return result; }    }### Answer:
@Test public void toFullyDetailledDto_should_return_executed_scenario_with_errors() { Date start = new Date(); Set<Error> errors = Sets.newSet(new Error()); ErrorWithProblemsDTO expectedError = new ErrorWithProblemsDTO(); expectedError.setId(1L); 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", errors); Mockito.doReturn(Lists.list(expectedError)).when(errorTransformer).toDtos(errors); ExecutedScenarioWithTeamIdsAndErrorsAndProblemsDTO result = cut.toFullyDetailledDto(value); Assertions.assertThat(result).isNotNull(); checkValidScenario(result, start); Assertions.assertThat(result.getHandling()).isEqualTo(Handling.UNHANDLED); Mockito.verify(errorTransformer).toDtos(errors); Assertions.assertThat(result.getErrors()).hasSize(1); Assertions.assertThat(result.getErrors().get(0)).isNotNull(); Assertions.assertThat(result.getErrors().get(0).getId()).isEqualTo(1L); }
@Test public void toFullyDetailledDto_should_return_empty_executed_scenario_if_null() { ExecutedScenarioWithTeamIdsAndErrorsAndProblemsDTO result = cut.toFullyDetailledDto(null); Assertions.assertThat(result).isNotNull(); Assertions.assertThat(result.getId()).isEqualTo(0L); checkDefaultValues(result); Assertions.assertThat(result.getHandling()).isNull(); Assertions.assertThat(result.getErrors()).isEmpty(); }