### Question:
BaseDnsEntryService extends BasePublicEndpointManagementService { protected abstract Map<String, List<String>> getComponentLocation(Stack stack);  Map<String, String> createOrUpdate(Stack stack); Map<String, String> deregister(Stack stack); Map<String, String> createOrUpdateCandidates(Stack stack, Map<String, String> candidateAddressesByFqdn); Map<String, String> deregister(Stack stack, Map<String, String> candidateAddressesByFqdn);  }### Answer:
@Test void testGetComponentLocation() { Stack stack = new Stack(); Cluster cluster = new Cluster(); stack.setCluster(cluster); underTest.getComponentLocation(stack); verify(componentLocatorService).getComponentLocation(cluster, nifiConfigProvider.getRoleTypes()); }