### Question:
ColorSetting extends Setting<Integer> { @Override public String write(Integer value) { return "#" + Integer.toHexString(value.intValue() | 0x1000000).substring(1).toUpperCase(); } ColorSetting(String name, String defaultValue); @Override Integer getDefaultValue(); @Override Integer read(String string); @Override String write(Integer value);  }### Answer:
@Test public void testColorSettings() throws InvalidConfigException { ColorSetting setting = new ColorSetting("TestSetting", "0xffffff"); testValue(setting, 0xffffff); testValue(setting, 0x000000); assertEquals("#000040", setting.write(0x000040)); }