public void testHasSharedGroupsReturnsTrueWhenOneIsSharedWithTheSameWithTheSameGroup() throws Exception {
        final DefaultGroupProvider provider = new DefaultGroupProvider();
        provider.createGroup("Test Group A").shareWithUsersInSameGroup("Users in group A");
        provider.createGroup("Test Group B");
        assertTrue(provider.hasSharedGroups());
    }
Verifies that a {@link AbstractGroupProvider#hasSharedGroups()} returns true when one group is shared with
members of the same group
xmppserver/src/test/java/org/jivesoftware/openfire/group/AbstractGroupProviderTest.java