### Question:
DefaultMailStorageConfiguration implements MailStorageConfiguration { @Override public boolean resendAutomaticallyAtStartup() { return this.xwikiPropertiesSource.getProperty(PREFIX + "resendAutomaticallyAtStartup", true); }  @Override boolean discardSuccessStatuses(); @Override boolean resendAutomaticallyAtStartup();  }### Answer:
@Test void resendAutomaticallyAtStartupWhenNotDefined() { when(xwikiPropertiesSource.getProperty( "mail.sender.database.resendAutomaticallyAtStartup", true)).thenReturn(true); assertEquals(true, this.configuration.resendAutomaticallyAtStartup()); }
@Test void resendAutomaticallyAtStartupWhenFalse() { when(xwikiPropertiesSource.getProperty( "mail.sender.database.resendAutomaticallyAtStartup", true)).thenReturn(false); assertEquals(false, this.configuration.resendAutomaticallyAtStartup()); }