@Test
public void sendFileShouldThrowExceptionIfUserIsNull() throws CommandException {

    expectedException.expect(IllegalArgumentException.class);
    expectedException.expectMessage("User can not be null");
    controller.sendFile(null, mock(FileToSend.class));
}