public void testRecreateGroup() throws Exception
    {
        final String GROUP_NAME = "Test Group A";
        final DefaultGroupProvider provider = new DefaultGroupProvider();
        provider.createGroup(GROUP_NAME);
        provider.deleteGroup(GROUP_NAME);
        provider.createGroup(GROUP_NAME);
    }
Asserts that a group can be created, removed and recreated again, with the same name.
xmppserver/src/test/java/org/jivesoftware/openfire/group/DefaultGroupProviderTest.java