@Test( expected = HostRegistrationException.class )
public void testRemoveRequest() throws Exception
{

    registrationManager.removeRequest( REQUEST_ID );
    verify( localPeer ).removeResourceHost( anyString() );
    //-----
    doThrow( new HostNotFoundException( "" ) ).when( localPeer ).removeResourceHost( anyString() );
    registrationManager.removeRequest( REQUEST_ID );
    //-----
    doThrow( new RuntimeException() ).when( localPeer ).removeResourceHost( anyString() );
    registrationManager.removeRequest( REQUEST_ID );
}