assertTrue(c.isStarted());
}
public void testSecureConfig() throws Exception
{
SmtpsConnector c = (SmtpsConnector)muleContext.getRegistry().lookupConnector("smtpsConnector");
assertNotNull(c);
assertEquals("abc@example.com", c.getBccAddresses());
assertEquals("bcd@example.com", c.getCcAddresses());
assertEquals("foo/bar", c.getContentType());
Properties headers = c.getCustomHeaders();
assertEquals(2, headers.size());
assertEquals("bar", headers.getProperty("foo"));
assertEquals("boz", headers.getProperty("baz"));
assertEquals("cde@example.com", c.getFromAddress());
assertEquals("def@example.com", c.getReplyToAddresses());
assertEquals("subject", c.getSubject());
// 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());
}