### Question:
TransactionalComponentService extends AbstractTransactionalEntityService<Component, ComponentDao> implements ComponentService { @Override public void reindexComponent(Jcommune jcommune) throws JcommuneRespondedWithErrorException, JcommuneUrlNotConfiguredException,NoConnectionToJcommuneException { String url = jcommune.getUrl(); jCommuneNotifier.notifyAboutReindexComponent(url); } TransactionalComponentService(ComponentDao dao); @Override List<Component> getAll(); @Override void deleteComponent(Component component); @Deprecated @Override void saveComponent(Component component); @Override void reindexComponent(Jcommune jcommune); @Override Set<ComponentType> getAvailableTypes(); @Override ComponentBase baseComponentFor(ComponentType componentType); @Override Component getByType(ComponentType type); JCommuneNotifier getjCommuneNotifier(); void setjCommuneNotifier(JCommuneNotifier jCommuneNotifier); @Override void addComponent(Component component); @Override void updateComponent(Component component);  }### Answer:
@Test public void reindexComponent() throws JcommuneRespondedWithErrorException, JcommuneUrlNotConfiguredException, NoConnectionToJcommuneException { componentService.setjCommuneNotifier(jCommuneNotifier); doReturn("").when(jcommune).getUrl(); componentService.reindexComponent(jcommune); verify(componentService.getjCommuneNotifier()).notifyAboutReindexComponent(jcommune.getUrl()); }