private void makeConfig(Cluster cluster, String type, String tag, Map<String, String> values, Map<String, Map<String, String>> attributes) throws AmbariException {
    Config config = configFactory.createNew(cluster, type, tag, values, attributes);
    cluster.addDesiredConfig("user", Collections.singleton(config));
  }
Helper method to create a configuration
@param cluster the cluster
@param type the config type
@param tag the config tag
@param values the values for the config
ambari-server/src/test/java/org/apache/ambari/server/state/svccomphost/ServiceComponentHostTest.java