private Collection<Map<String, String>> getNewSyntaxConfigProps() {
    Collection<Map<String, String>> configurations = new ArrayList<>();

    // type foo has both properties and attributes
    Map<String, String> configProperties1 = new HashMap<>();
    configProperties1.put("foo-type/properties/prop1", "prop1Value");
    configProperties1.put("foo-type/properties/prop2", "prop2Value");
    // foo type attributes
    configProperties1.put("foo-type/properties_attributes/attribute1/prop1", "attribute1-prop1-value");
    configProperties1.put("foo-type/properties_attributes/attribute1/prop2", "attribute1-prop2-value");
    configProperties1.put("foo-type/properties_attributes/attribute1/prop3", "attribute1-prop3-value");
    configProperties1.put("foo-type/properties_attributes/attribute2/prop1", "attribute2-prop1-value");
    configurations.add(configProperties1);

    // type bar has only properties
    Map<String, String> configProperties2 = new HashMap<>();
    configProperties2.put("bar-type/properties/prop3", "prop3Value");
    configurations.add(configProperties2);

    // type foobar has only attributes
    Map<String, String> configProperties3 = new HashMap<>();
    configProperties3.put("foobar-type/properties_attributes/attribute1/prop10", "attribute1-prop10-value");
    configProperties3.put("foobar-type/properties_attributes/attribute10/prop11", "attribute10-prop11-value");
    configurations.add(configProperties3);

    return configurations;
  }
Creates a configuration instance given user specified properties.
ambari-server/src/test/java/org/apache/ambari/server/topology/ConfigurationFactoryTest.java