@Test
public void testCall() throws Exception
{

    doReturn( RegistrationStatus.APPROVED ).when( peer ).getStatus();
    task.call();
    verify( peer ).resetSwarmSecretKey( p2PCredentials );
    doReturn( RegistrationStatus.CANCELLED ).when( peer ).getStatus();
    task.call();
    verify( trackerOperation ).addLog( anyString() );
}