public void testLoadPropertiesReturnsPropertiesForGroup() throws Exception {
        final DefaultGroupProvider provider = new DefaultGroupProvider();
        Group a = provider.createGroup("Test Group A");
        a.shareWithNobody();
        PersistableMap<String,String> result =  provider.loadProperties(a);

        assertEquals(3, result.size());
        assertTrue(result.containsKey(Group.SHARED_ROSTER_DISPLAY_NAME_PROPERTY_KEY));
        assertEquals("", result.get(Group.SHARED_ROSTER_DISPLAY_NAME_PROPERTY_KEY));
        assertTrue(result.containsKey(Group.SHARED_ROSTER_GROUP_LIST_PROPERTY_KEY));
        assertEquals("", result.get(Group.SHARED_ROSTER_GROUP_LIST_PROPERTY_KEY));
        assertTrue(result.containsKey(Group.SHARED_ROSTER_SHOW_IN_ROSTER_PROPERTY_KEY));
        assertEquals(SharedGroupVisibility.nobody.getDbValue(), result.get(Group.SHARED_ROSTER_SHOW_IN_ROSTER_PROPERTY_KEY));
    }
Verifies that a {@link AbstractGroupProvider#getVisibleGroupNames(String)} returns a group shared with itself
xmppserver/src/test/java/org/jivesoftware/openfire/group/AbstractGroupProviderTest.java