assertEquals("0", profileProperties.getProperty("defaultThrottle"));
}
@Test
public void testUpdate() throws Exception {
DroidGlobalConfig config = new DroidGlobalConfig();
config.init();
Map<String, Object> changedProperties = new HashMap<String, Object>();
changedProperties.put(DroidGlobalProperty.DEFAULT_THROTTLE.getName(), "123");
config.update(changedProperties);
assertEquals(123, config.getProperties().getInt(DroidGlobalProperty.DEFAULT_THROTTLE.getName()));
PropertiesConfiguration props = new PropertiesConfiguration(droidProperties);
assertEquals(123, props.getInt(DroidGlobalProperty.DEFAULT_THROTTLE.getName()));
}