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

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

        assertEquals(1, result.size());
        assertTrue(result.contains("Test Group B"));
    }
Verifies that {@link DefaultGroupProvider#setName(String, String)} changes the name of the group
xmppserver/src/test/java/org/jivesoftware/openfire/group/DefaultGroupProviderTest.java