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

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

        // Verify result.
        assertEquals(0, result.size());
    }
Verifies that a {@link DefaultGroupProvider#getGroupNames(JID)} returns an empty collection when the provided
user is not a member or admin of any group.
xmppserver/src/test/java/org/jivesoftware/openfire/group/DefaultGroupProviderTest.java