@Test
    void requireThatSearchNodesAreCorrectWithTwoGroups() throws Exception {
        ContentCluster c = getTwoGroupsCluster();
        List<SearchNode> searchNodes = c.getSearch().getSearchNodes();

        assertEquals(6, searchNodes.size());
        assertSearchNode(0, 0, 0, searchNodes.get(0));
        assertSearchNode(0, 1, 1, searchNodes.get(1));
        assertSearchNode(0, 2, 2, searchNodes.get(2));
        assertSearchNode(1, 0, 3, searchNodes.get(3));
        assertSearchNode(1, 1, 4, searchNodes.get(4));
        assertSearchNode(1, 2, 5, searchNodes.get(5));
    }
Unit tests for hierarchic distribution in an indexed content cluster.

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