public void testRecreateGroup() throws Exception
    {
        final String GROUP_NAME = "Test Group A";
        final GroupManager groupManager = GroupManager.getInstance();
        final Group group = groupManager.createGroup(GROUP_NAME);
        groupManager.deleteGroup(group);
        groupManager.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/GroupManagerNoMockTest.java