@Test
    public void testGetJohn() throws Exception
    {
        // Setup test fixture.
        HybridGroupProvider.PRIMARY_PROVIDER.setValue(TestGroupProvider.NoGroupProvider.class);
        HybridGroupProvider.SECONDARY_PROVIDER.setValue(TestGroupProvider.LittleEndiansGroupProvider.class);
        HybridGroupProvider.TERTIARY_PROVIDER.setValue(TestGroupProvider.BigEndiansGroupProvider.class);
        final HybridGroupProvider provider = new HybridGroupProvider();

        // Execute system under test.
        final Group result = provider.getGroup("big-endians");

        // Verify results.
        assertNotNull(result);
        assertEquals("big-endians", result.getName());
    }
Verifies that a group named 'big-endians' is returned (from the tertiary provider).
xmppserver/src/test/java/org/jivesoftware/openfire/group/HybridGroupProviderTest.java