}
@Test
public void testLoadPresetOnStartup() {
Properties config = new Properties();
ApplicationConfigurationHelper ph = new ApplicationConfigurationHelper(config);
int presetNr = ph.loadPresetOnStart(Collector.NR_OF_PRESET_SLOTS);
assertEquals(-1, presetNr);
config.put(ConfigConstant.STARTUP_LOAD_PRESET_NR, "22");
ph = new ApplicationConfigurationHelper(config);
presetNr = ph.loadPresetOnStart(Collector.NR_OF_PRESET_SLOTS);
assertEquals(22, presetNr);
config = new Properties();
config.put(ConfigConstant.STARTUP_LOAD_PRESET_NR, "2222");
ph = new ApplicationConfigurationHelper(config);
presetNr = ph.loadPresetOnStart(Collector.NR_OF_PRESET_SLOTS);
assertEquals(-1, presetNr);
}