### Question:
JCommuneNotifierImpl implements JCommuneNotifier { @Override public void notifyAboutReindexComponent(String jCommuneUrl) throws NoConnectionToJcommuneException, JcommuneRespondedWithErrorException, JcommuneUrlNotConfiguredException { checkUrlIsConfigured(jCommuneUrl); notifyJCommune(jCommuneUrl + REINDEX_URL_PART, Method.POST); } JCommuneNotifierImpl(UserDao userDao); @Override void notifyAboutSectionDelete(String jCommuneUrl, PoulpeSection section); @Override void notifyAboutBranchDelete(String jCommuneUrl, PoulpeBranch branch); @Override void notifyAboutComponentDelete(String jCommuneUrl); @Override void notifyAboutReindexComponent(String jCommuneUrl);  }### Answer:
@Test public void shouldNotifyIfUrlIsSet() throws Exception { sut.notifyAboutReindexComponent("http: }
@Test(expectedExceptions = JcommuneUrlNotConfiguredException.class) public void notifyAboutReindexNoUrl() throws Exception { sut.notifyAboutReindexComponent(""); }
@Test(expectedExceptions = JcommuneUrlNotConfiguredException.class) public void notifyAboutReindexUrlIsIsNull() throws Exception { sut.notifyAboutReindexComponent(null); }
@Test(expectedExceptions = JcommuneUrlNotConfiguredException.class) public void notifyAboutReindexUrlOnlySpaces() throws Exception { sut.notifyAboutReindexComponent(" "); }