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

  ConfigDef def = new ConfigDef().define("name", Type.STRING, "bad", ConfigDef.ValidString
      .in(Arrays.asList("valid", "values")), ConfigDef.Importance.HIGH, "docs");
}