@Test(expected = ExitException.class)
public void testCheckParamExists() throws ExitException {

    final Properties properties = new Properties();
    final String key = "p1";
    properties.put(key, key);
    try {
        ConfigParser.checkParamExists(properties, key);
    } catch (final ExitException e) {
        fail("Parameter exists");
    }
    properties.remove(key);
    ConfigParser.checkParamExists(properties, key);
}