### Question:
ExecutionTransformer { public ExecutionWithCountryDeploymentsAndRunsAndExecutedScenariosAndTeamIdsAndErrorsAndProblemsDTO toFullyDetailledDto(Execution execution) { ExecutionWithCountryDeploymentsAndRunsAndExecutedScenariosAndTeamIdsAndErrorsAndProblemsDTO result = new ExecutionWithCountryDeploymentsAndRunsAndExecutedScenariosAndTeamIdsAndErrorsAndProblemsDTO(); result.setId(0L); if (null != execution) { this.fillDto(result, execution); result.setCountryDeployments(countryDeploymentTransformer.toDtos(execution.getCountryDeployments())); result.setRuns(runTransformer.toFullyDetailledDtos(execution.getRuns())); } return result; }  ExecutionWithCountryDeploymentsAndRunsAndExecutedScenariosAndTeamIdsAndErrorsAndProblemsDTO toFullyDetailledDto(Execution execution); ExecutionDTO toDto(Execution execution);  }### Answer:
@Test public void toFullyDetailledDto_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"); Mockito.doReturn(new ArrayList<>()).when(countryDeploymentTransformer).toDtos(countries); Mockito.doReturn(new ArrayList<>()).when(runTransformer).toFullyDetailledDtos(runs); ExecutionDTO result = cut.toFullyDetailledDto(value); Assertions.assertThat(result).isNotNull(); checkValidExecutionDto(result, build, test); Mockito.verify(countryDeploymentTransformer).toDtos(countries); Mockito.verify(runTransformer).toFullyDetailledDtos(runs); }
@Test public void toFullyDetailledDto_should_return_empty_dto_on_null_value() { ExecutionDTO result = cut.toFullyDetailledDto(null); Assertions.assertThat(result).isNotNull(); checkDefaultExecutionDto(result); Mockito.verify(countryDeploymentTransformer, Mockito.never()).toDtos(Mockito.anyCollection()); Mockito.verify(runTransformer, Mockito.never()).toFullyDetailledDtos(Mockito.anyCollection()); }