@Test
public void sendFileShouldThrowExceptionIfFileIsNull() throws CommandException {

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