@Test(expected = ConfigException.class)
public void testDefinedTwice() {

  new ConfigDef().define("a", Type.STRING, ConfigDef.Importance.HIGH, "docs")
      .define("a", Type.INT, ConfigDef.Importance.HIGH, "docs");
}