### Question:
ExposedServiceCollector { @PostConstruct public void init() { readExposedServices(); }  @PostConstruct void init(); ExposedService getAtlasService(); ExposedService getClouderaManagerService(); ExposedService getClouderaManagerUIService(); ExposedService getHBaseRestService(); ExposedService getHBaseUIService(); ExposedService getHBaseJarsService(); ExposedService getHiveServerService(); ExposedService getHueService(); ExposedService getImpalaService(); ExposedService getImpalaDebugUIService(); ExposedService getKuduService(); ExposedService getQueueService(); ExposedService getNameNodeService(); ExposedService getNiFiService(); ExposedService getRangerService(); ExposedService getResourceManagerWebService(); ExposedService getByName(String name); Set<String> getFullServiceListBasedOnList(Collection<String> services); boolean isKnoxExposed(String knoxService); Collection<ExposedService> knoxServicesForComponents(Collection<String> components); Set<String> getAllKnoxExposed(); List<String> getAllServiceNames(); Map<String, Integer> getAllServicePorts(boolean tls); static final String ALL; }### Answer:
@Test void initIllegal() { when(cloudbreakResourceReaderService.resourceDefinition(anyString())).thenReturn(null); assertThrows(IllegalStateException.class, () -> underTest.init()); }