@Test
public void sendFileShouldThrowExceptionIfNotConnected() throws CommandException {

    expectedException.expect(CommandException.class);
    expectedException.expectMessage("You can not send a file without being connected");
    controller.sendFile(mock(User.class), mock(FileToSend.class));
}