ConfigDef { public ConfigDef defineOverride(String name, Type type, Object defaultValue, Validator validator, Importance importance, String documentation) { if (!configKeys.containsKey(name)) { throw new ConfigException("Configuration " + name + " is defined as an override but does not exist."); } Object parsedDefault = NO_DEFAULT_VALUE.equals(defaultValue) ? NO_DEFAULT_VALUE : parseType(name, defaultValue, type); configKeys .put(name, new ConfigKey(name, type, parsedDefault, validator, importance, documentation)); return this; } ConfigDef();  ConfigDef(ConfigDef configDef); Set<String> names(); ConfigDef define(String name, Type type, Object defaultValue, Validator validator,
                          Importance importance, String documentation); ConfigDef defineOverride(String name, Type type, Object defaultValue, Validator validator,
                                  Importance importance, String documentation); ConfigDef define(String name, Type type, Object defaultValue, Importance importance,
                          String documentation); ConfigDef defineOverride(String name, Type type, Object defaultValue, Importance importance,
                          String documentation); ConfigDef define(String name, Type type, Validator validator, Importance importance,
                          String documentation); ConfigDef defineOverride(String name, Type type, Validator validator, Importance importance,
                          String documentation); ConfigDef define(String name, Type type, Importance importance, String documentation); ConfigDef defineOverride(String name, Type type, Importance importance, String documentation); Map<String, Object> parse(Map<?, ?> props); String toHtmlTable(); String toRst();  }
@Test(expected = ConfigException.class) public void testOverrideNotPreviouslyDefined() { new ConfigDef().defineOverride("a", Type.STRING, ConfigDef.Importance.HIGH, "docs"); }