### Question:
JcommuneHttpNotifier implements JCommuneNotifier { public void notifyAboutComponentDelete(String jCommuneUrl) throws NoConnectionToJcommuneException, JcommuneRespondedWithErrorException, JcommuneUrlNotConfiguredException { notifyAboutDeleteElement(jCommuneUrl + WHOLEFORUM_URL_PART); } JcommuneHttpNotifier(UserDao userDao); void notifyAboutSectionDelete(String jCommuneUrl, PoulpeSection section); void notifyAboutBranchDelete(String jCommuneUrl, PoulpeBranch branch); void notifyAboutComponentDelete(String jCommuneUrl); void notifyAboutReindexComponent(String jCommuneUrl);  }### Answer:
@Test public void testNotifyAboutComponentDelete() throws Exception { doReturn(validResponse()).when(sut).doSendRequest(any(HttpUriRequest.class)); sut.notifyAboutComponentDelete("url"); verify(sut).doSendRequest(argThat(eqRequest("url/component?password=password", "DELETE"))); }