@Test()
    public void testCreateGroup() 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.
        provider.createGroup("middle-endians");
        final Group result = provider.getGroup("middle-endians");

        // Verify results
        assertNotNull(result);
        assertEquals("middle-endians", result.getName());
    }
Verifies a new group can be created.
xmppserver/src/test/java/org/jivesoftware/openfire/group/HybridGroupProviderTest.java