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());
assertEquals(30000, config.getDefaultResponseTimeout());
assertEquals(60000, config.getDefaultTransactionTimeout());
assertTrue(config.isClientMode());
// These are not OK to change after init
assertFalse("UTF-16".equals(config.getDefaultEncoding()));
assertFalse(workingDirectory.equals(config.getWorkingDirectory()));
assertFalse("MY_SERVER".equals(config.getId()));
assertFalse("MY_DOMAIN".equals(config.getDomainId()));
}