public void testDeleteGroup() throws Exception{
        final DefaultGroupProvider provider = new DefaultGroupProvider();
        provider.createGroup("Test Group A");
        provider.createGroup("Test Group B");

        provider.deleteGroup("Test Group A");
        final Collection<String> result = provider.getGroupNames();

        assertEquals(1, result.size());
        assertTrue(result.contains("Test Group B"));
    }
Verifies that {@link DefaultGroupProvider#deleteGroup(String)} deletes the named group, such that it cannot be
retrieved
xmppserver/src/test/java/org/jivesoftware/openfire/group/DefaultGroupProviderTest.java