}
@Test
public void testSecureConnector2Properties() throws Exception
{
AjaxConnector connector =
(AjaxConnector) muleContext.getRegistry().lookupConnector("connector2");
assertNotNull(connector);
assertTrue(connector.isJsonCommented());
assertEquals(1000, connector.getInterval());
assertEquals(1, connector.getLogLevel());
assertEquals(10000, connector.getMaxInterval());
assertEquals(3000, connector.getMultiFrameInterval());
assertEquals(4000, connector.getRefsThreshold());
assertEquals(50000, connector.getTimeout());
assertEquals(new URL("https://0.0.0.0:" + dynamicPort2.getNumber() + "/service"), connector.getServerUrl());
assertEquals("/foo/bar", connector.getResourceBase());
//The full path gets resolved, we're just checkng that the property got set
assertTrue(connector.getKeyStore().endsWith("/serverKeystore"));
assertEquals("muleserver", connector.getKeyAlias());
assertEquals("mulepassword", connector.getKeyPassword());
assertEquals("mulepassword", connector.getKeyStorePassword());
//The full path gets resolved, we're just checkng that the property got set
assertTrue(connector.getClientKeyStore().endsWith("/clientKeystore"));
assertEquals("mulepassword", connector.getClientKeyStorePassword());
//The full path gets resolved, we're just checkng that the property got set
assertTrue(connector.getTrustStore().endsWith("/trustStore"));
assertEquals("mulepassword", connector.getTrustStorePassword());
assertTrue(connector.isExplicitTrustStoreOnly());
assertTrue(connector.isRequireClientAuthentication());
}