/**
  * @test
  */
 public function it_throws_an_error_if_the_to_date_is_less_then_the_from_date()
 {
     $imap = $this->getImap();
     $mailboxManager = new ImapMailboxService($imap);
     $this->setExpectedException('Exception');
     $this->assertEquals([1, 2], $mailboxManager->getMessagesBetween('2016-01-11', '2016-01-01'));
 }