CONN-853 Fixed ImapMailReceiverTest for further coverage

Added further coverage by including a protected method that was overridden before and adding an exception use case.