### Question:
EMailLogic { public void disconnectFromMailServer() { this.mailSession.endSession(); this.storage.delete(USERNAME_CRED_KEY); this.storage.delete(PASSOWRD_CRED_KEY); this.storage.delete(IMAPSERVER_CRED_KEY); }  boolean hasNewMessages(boolean checkForImportant); int getNewMessageCount(boolean checkForImportant); String printMessages(int amount, boolean important); MessageDTO[] getMailsForREST(int amount); boolean connectToMailServer(EMailCredentials credentials); boolean isConnectedToMailServer(); void disconnectFromMailServer(); EMailCredentials getCredentials(); @PostConstruct void connectToMailServer();  }### Answer:
@Test protected void testDisconnectFromMailServer() { this.emailLogic.disconnectFromMailServer(); Mockito.verify(this.mailSession).endSession(); Mockito.verify(this.framework.storage(), Mockito.atLeastOnce()).delete(ArgumentMatchers.anyString()); }