### Question:
JCommuneNotifierImpl implements JCommuneNotifier { @Override public void notifyAboutBranchDelete(String jCommuneUrl, PoulpeBranch branch) throws NoConnectionToJcommuneException, JcommuneRespondedWithErrorException, JcommuneUrlNotConfiguredException { checkUrlIsConfigured(jCommuneUrl); notifyJCommune(jCommuneUrl + BRANCH_URL_PART + branch.getId(), Method.DELETE); } 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(expectedExceptions = JcommuneUrlNotConfiguredException.class) public void notifyAboutBranchNoUrl() throws Exception { sut.notifyAboutBranchDelete("", null); }
@Test(expectedExceptions = JcommuneUrlNotConfiguredException.class) public void notifyAboutBranchUrlIsNull() throws Exception { sut.notifyAboutBranchDelete(null, null); }
@Test(expectedExceptions = JcommuneUrlNotConfiguredException.class) public void notifyAboutBranchUrlOnlySpaces() throws Exception { sut.notifyAboutBranchDelete(" ", null); }