public void testHasSharedGroupsReturnsFalseWhenSharedWithNobody() throws Exception {
        final DefaultGroupProvider provider = new DefaultGroupProvider();
        provider.createGroup("Test Group A").shareWithNobody();
        assertFalse(provider.hasSharedGroups());
    }
Verifies that a {@link AbstractGroupProvider#hasSharedGroups()} returns false when group is explicitly shared
with nobody
xmppserver/src/test/java/org/jivesoftware/openfire/group/AbstractGroupProviderTest.java