### Question:
EnvironmentResourceDeletionService { public Set<String> getDatalakeClusterNames(Environment environment) { Set<String> clusterNames = new HashSet<>(); LOGGER.debug("Get Datalake clusters of the environment: '{}'", environment.getName()); try { Set<String> datalakeClusterNames = ThreadBasedUserCrnProvider.doAsInternalActor(() -> datalakeV4Endpoint .list(null, environment.getResourceCrn()) .getResponses() .stream() .map(StackViewV4Response::getName) .collect(Collectors.toSet())); clusterNames.addAll(datalakeClusterNames); } catch (WebApplicationException e) { propagateException("Failed to get Datalake clusters from Cloudbreak service due to:", e); } catch (ProcessingException e) { propagateException("Failed to get Datalake clusters from Cloudbreak service due to:", e); } return clusterNames; } EnvironmentResourceDeletionService(SdxEndpoint sdxEndpoint, DatalakeV4Endpoint datalakeV4Endpoint, DistroXV1Endpoint distroXV1Endpoint,
            ClusterTemplateV4Endpoint clusterTemplateV4Endpoint); void deleteClusterDefinitionsOnCloudbreak(String environmentCrn); Set<String> getAttachedSdxClusterCrns(Environment environment); Set<String> getDatalakeClusterNames(Environment environment);  }### Answer:
@Test void getDatalakeClusterNames() { when(datalakeEndpoint.list(isNull(), anyString())).thenReturn(new StackViewV4Responses()); environmentResourceDeletionServiceUnderTest.getDatalakeClusterNames(environment); verify(datalakeEndpoint).list(isNull(), eq(ENVIRONMENT_CRN)); }