### Question:
ExecutionTransformer { public ExecutionDTO toDto(Execution execution) { ExecutionDTO result = new ExecutionDTO(); result.setId(0L); if (null != execution) { this.fillDto(result, execution); } return result; }  ExecutionWithCountryDeploymentsAndRunsAndExecutedScenariosAndTeamIdsAndErrorsAndProblemsDTO toFullyDetailledDto(Execution execution); ExecutionDTO toDto(Execution execution);  }### Answer:
@Test public void toDto_should_transform_the_do() { Date build = new Date(); Date test = new Date(build.getTime() + 1000L); Set<Run> runs = Sets.newSet(new Run()); Set<CountryDeployment> countries = Sets.newSet(new CountryDeployment()); Execution value = new Execution(1L, "branch", "name", "release", "version", build, test, "jobUrl", "jobLink", JobStatus.PENDING, Result.ABORTED, ExecutionAcceptance.ACCEPTED, "discardReason", null, true, "qualityThresholds", QualityStatus.FAILED, "qualitySeverities", 10L, 100L, runs, countries); Mockito.doReturn(new HashMap<>()).when(qualityThresholdTransformer).toMap("qualityThresholds"); Mockito.doReturn(new ArrayList<>()).when(qualitySeverityTransformer).toDtos("qualitySeverities"); ExecutionDTO result = cut.toDto(value); Assertions.assertThat(result).isNotNull(); checkValidExecutionDto(result, build, test); }
@Test public void toDto_should_return_empty_dto_on_null_value() { ExecutionDTO result = cut.toDto(null); Assertions.assertThat(result).isNotNull(); checkDefaultExecutionDto(result); }