### Question:
EnvironmentResourceDeletionService { public Set<String> getAttachedSdxClusterCrns(Environment environment) { Set<String> clusterCrns = new HashSet<>(); LOGGER.debug("Get SDX clusters of the environment: '{}'", environment.getName()); try { Set<String> sdxClusterCrns = sdxEndpoint .list(environment.getName()) .stream() .map(SdxClusterResponse::getCrn) .collect(Collectors.toSet()); clusterCrns.addAll(sdxClusterCrns); } catch (WebApplicationException e) { propagateException("Failed to get SDX clusters from SDX service due to:", e); } catch (ProcessingException e) { propagateException("Failed to get SDX clusters from SDX service due to:", e); } return clusterCrns; } 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 getAttachedSdxClusterNames() { environmentResourceDeletionServiceUnderTest.getAttachedSdxClusterCrns(environment); verify(sdxEndpoint).list(eq(ENVIRONMENT_NAME)); }