public void testPublicSharedGroupNamesOne() throws Exception
    {
        // Setup test fixture.
        final DefaultGroupProvider provider = new DefaultGroupProvider();
        provider.createGroup("Test Group A").shareWithEverybody("Users in group A");
        provider.createGroup("Test Group B");

        // Execute system under test.
        final Collection<String> result = provider.getPublicSharedGroupNames();

        // Verify result.
        assertEquals(1, result.size());
        assertTrue(result.contains("Test Group A"));
    }
Verifies that a {@link AbstractGroupProvider#getPublicSharedGroupNames()} returns one group when there
is one groups that is shared with everyone.
xmppserver/src/test/java/org/jivesoftware/openfire/group/AbstractGroupProviderTest.java