@Test
public void sendFileShouldShowSystemMessage() throws CommandException {

    final User user = new User("Kelly", 123456);
    final FileToSend file = mock(FileToSend.class);
    final FileSender fileSender = mock(FileSender.class);
    when(file.getName()).thenReturn("picture.png");
    when(file.length()).thenReturn(1024 * 1024 * 54L);
    when(fileSender.getId()).thenReturn(2);
    when(transferList.addFileSender(any(User.class), any(FileToSend.class))).thenReturn(fileSender);
    parser.sendFile(user, file);
    verify(messageController).showSystemMessage("Trying to send the file picture.png (#2) [54.00MB] to Kelly");
}