Set<String> hostNames = new HashSet<String>(){{
add(hostname1);
add(hostname2);
}};
ConfigFactory configFactory = injector.getInstance(ConfigFactory.class);
Config config = configFactory.createNew(cluster, "global",
new HashMap<String,String>() {{ put("a", "b"); }});
config.setVersionTag("version1");
cluster.addConfig(config);
cluster.addDesiredConfig("_test", config);