public void testDeleteGroupShared() throws Exception {
        final JID needle = new JID("jane@example.org");
        final DefaultGroupProvider provider = new DefaultGroupProvider();
        provider.createGroup("Test Group A").shareWithEverybody("Users in group A");
        provider.createGroup("Test Group B");

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

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