@Test
public void testConfigureAfterInitFails() throws Exception
{
muleContext = new DefaultMuleContextFactory().createMuleContext();
DefaultMuleConfiguration mutableConfig = ((DefaultMuleConfiguration) muleContext.getConfiguration());
// These are OK to change after init but before start
mutableConfig.setDefaultSynchronousEndpoints(true);
mutableConfig.setSystemModelType("direct");
mutableConfig.setDefaultResponseTimeout(30000);
mutableConfig.setDefaultTransactionTimeout(60000);
mutableConfig.setClientMode(true);
// These are not OK to change after init
mutableConfig.setDefaultEncoding("UTF-16");
mutableConfig.setWorkingDirectory(workingDirectory);
mutableConfig.setId("MY_SERVER");
mutableConfig.setDomainId("MY_DOMAIN");
MuleConfiguration config = muleContext.getConfiguration();
// These are OK to change after init but before start
assertEquals("direct", config.getSystemModelType());