public void testSharedGroupNamesByNameNoneButMember() throws Exception
    {
        // Setup test fixture.
        final JID needle = new JID("jane@example.org");
        final DefaultGroupProvider provider = new DefaultGroupProvider();
        provider.createGroup("Test Group A");
        provider.createGroup("Test Group B").getMembers().add(needle);

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

        // Verify result.
        assertEquals(0, result.size());
    }
Verifies that a {@link AbstractGroupProvider#getSharedGroupNames(JID)} returns nothing when there are no groups
that are shared, with the user being in a member of one of the groups.
xmppserver/src/test/java/org/jivesoftware/openfire/group/AbstractGroupProviderTest.java