@Test
public void cancelShouldCancelAndNotifyRecipientIfFileSendIsWaiting() {

    final User someOne = setupSomeOne();
    final FileSender fileSender = setupFileSender(someOne);
    when(fileSender.isWaiting()).thenReturn(true);
    final FileToSend file = setupFile(fileSender);
    when(fileSender.getUser()).thenReturn(someOne);
    parser.parse("/cancel SomeOne 1");
    verify(transferList).getFileTransfer(someOne, 1);
    verify(transferList).removeFileSender(fileSender);
    verify(messageController).showSystemMessage("You cancelled sending of doc.pdf to SomeOne");
    verify(controller).sendFileAbort(someOne, file.hashCode(), "doc.pdf");
    verify(fileSender).cancel();
}