{
EnumSetting<ConfigMode> setting = new EnumSetting<ConfigMode>("TestSetting", ConfigMode.WriteAll);
for (ConfigMode configMode : ConfigMode.values())
{
// .toUpperCase to make sure that it is case insensitive
ConfigMode readBack = setting.read(configMode.name().toUpperCase());
// Make sure we actually have got the correct config mode
assertEquals(configMode, readBack);
}
}