private String getTwoGroupsXml(String partitions) {
        return joinLines("  <group>",
               "    <distribution partitions='" + partitions + "'/>",
               "    <group distribution-key='0' name='group0'>",
               "      <node distribution-key='0' hostalias='mockhost'/>",
               "      <node distribution-key='1' hostalias='mockhost'/>",
               "      <node distribution-key='2' hostalias='mockhost'/>",
               "    </group>",
               "    <group distribution-key='1' name='group1'>",
               "      <node distribution-key='3' hostalias='mockhost'/>",
               "      <node distribution-key='4' hostalias='mockhost'/>",
               "      <node distribution-key='5' hostalias='mockhost'/>",
               "    </group>",
               "  </group>", "");
    }
Unit tests for hierarchic distribution in an indexed content cluster.

@author geirst
config-model/src/test/java/com/yahoo/vespa/model/content/IndexedHierarchicDistributionTest.java