assertEquals(Flags.Flag.SEEN, c.getDefaultProcessMessageAction());
}
public void testSecureConfig() throws Exception
{
Pop3sConnector c = (Pop3sConnector)muleContext.getRegistry().lookupConnector("pop3sConnector");
assertNotNull(c);
assertTrue(c.isBackupEnabled());
assertEquals("newBackup", c.getBackupFolder());
assertEquals(1234, c.getCheckFrequency());
assertEquals("newMailbox", c.getMailboxFolder());
assertEquals(false, c.isDeleteReadMessages());
// authenticator?
//The full path gets resolved, we're just checkng that the property got set
assertTrue(c.getClientKeyStore().endsWith("/empty.jks"));
assertEquals("password", c.getClientKeyStorePassword());
//The full path gets resolved, we're just checkng that the property got set
assertTrue(c.getTrustStore().endsWith("/empty.jks"));
assertEquals("password", c.getTrustStorePassword());
assertTrue(c.isConnected());
assertTrue(c.isStarted());
assertEquals(Flags.Flag.ANSWERED, c.getDefaultProcessMessageAction());
}