### Question:
RestBackendImpl implements RestBackend { @Override public Set<String> getDomainUids() { LOGGER.entering(); authorize(null, Operation.list); Set<String> result = new TreeSet<>(); List<Domain> domains = getDomainsList(); for (Domain domain : domains) { result.add(domain.getDomainUid()); } LOGGER.exiting(result); return result; } RestBackendImpl(String principal, String accessToken, Collection<String> targetNamespaces); @Override Set<String> getDomainUids(); @Override boolean isDomainUid(String domainUid); @Override void performDomainAction(String domainUid, DomainAction params); @Override Set<String> getClusters(String domainUid); @Override boolean isCluster(String domainUid, String cluster); @Override void scaleCluster(String domainUid, String cluster, int managedServerCount); static final String INITIAL_VERSION; }### Answer:
@Test public void retrieveRegisteredDomainIds() { assertThat(restBackend.getDomainUids(), containsInAnyOrder(NAME1, NAME2)); }