@Override
    public void getConfig(StorServerConfig.Builder builder) {
        super.getConfig(builder);
        provider.getConfig(builder);
    }
@Test
    void testThatGroupsAreCountedInWhenComputingSplitBits() {
        StorDistributormanagerConfig.Builder builder = new StorDistributormanagerConfig.Builder();
        ContentCluster cluster = parseCluster("<cluster id=\"storage\">\n" +
                "  <redundancy>3</redundancy>" +
                "  <documents/>" +
                "    <tuning>" +
                "      <distribution type=\"legacy\"/>" +
                "    </tuning>\n" +
                "  <group>" +
                "     <node distribution-key=\"0\" hostalias=\"mockhost\"/>" +
                "     <node distribution-key=\"1\" hostalias=\"mockhost\"/>" +
                "  </group>" +
                "</cluster>");
        cluster.getConfig(builder);

        StorDistributormanagerConfig conf = new StorDistributormanagerConfig(builder);

        assertEquals(1024, conf.splitcount());
        assertEquals(512, conf.joincount());
        assertEquals(16772216, conf.splitsize());
        assertEquals(16000000, conf.joinsize());
        assertEquals(8, conf.minsplitcount());
        assertTrue(conf.inlinebucketsplitting());

        cluster = parseCluster("<cluster id=\"storage\">\n" +
                "  <redundancy>2</redundancy>" +
                "  <documents/>" +
                "    <tuning>" +
                "      <distribution type=\"legacy\"/>" +
                "    </tuning>\n" +
                "  <group>" +
                "    <distribution partitions=\"1|*\"/>" +
                "    <group name=\"a\" distribution-key=\"0\">" +
                "       <node distribution-key=\"0\" hostalias=\"mockhost\"/>" +
                "       <node distribution-key=\"1\" hostalias=\"mockhost\"/>" +
                "       <node distribution-key=\"2\" hostalias=\"mockhost\"/>" +
                "    </group>" +
                "    <group name=\"b\" distribution-key=\"1\">" +
                "       <node distribution-key=\"3\" hostalias=\"mockhost\"/>" +
                "       <node distribution-key=\"4\" hostalias=\"mockhost\"/>" +
                "       <node distribution-key=\"5\" hostalias=\"mockhost\"/>" +
                "    </group>" +
                "  </group>" +
                "</cluster>");
        cluster.getConfig(builder);

        conf = new StorDistributormanagerConfig(builder);

        assertEquals(1024, conf.splitcount());
        assertEquals(512, conf.joincount());
        assertEquals(16772216, conf.splitsize());
        assertEquals(16000000, conf.joinsize());
        assertEquals(14, conf.minsplitcount());
        assertTrue(conf.inlinebucketsplitting());
    }