@Test
public void sendFileShouldThrowExceptionIfUserIsMe() throws CommandException {

    expectedException.expect(CommandException.class);
    expectedException.expectMessage("You can not send a file to yourself");
    final User user = mock(User.class);
    when(user.isMe()).thenReturn(true);
    controller.sendFile(user, mock(FileToSend.class));
}