@Test
public void sendFileShouldSendUsingControllerAndAddToTransferListAndShowFileTransfer() throws CommandException {

    final User user = new User("User", 123456);
    final FileToSend file = new FileToSend(new File(""));
    final FileSender fileSender = mock(FileSender.class);
    when(transferList.addFileSender(any(User.class), any(FileToSend.class))).thenReturn(fileSender);
    parser.sendFile(user, file);
    verify(controller).sendFile(user, file);
    verify(transferList).addFileSender(user, file);
    verify(userInterface).showTransfer(fileSender);
}