BackupImapStore extends ImapStore { @Override public String toString() { return "BackupImapStore{" + "uri=" + getStoreUriForLogging() + '}'; } BackupImapStore(final Context context, final String uri,
                           boolean trustAllCertificates); BackupFolder getFolder(DataType type, DataTypePreferences preferences); void closeFolders(); @Override String toString(); String getStoreUriForLogging(); String getStoreUri(); static boolean isValidImapFolder(String imapFolder); static boolean isValidUri(String uri);  }
@Test public void shouldHaveToStringWithStoreUriForLogging() throws Exception { BackupImapStore store = new BackupImapStore(RuntimeEnvironment.application, "imap: assertThat(store.toString()).isEqualTo("BackupImapStore{uri=imap: }