@Test
    public void testAddFullJid() throws Exception
    {
        // Setup test fixture.
        final String groupName = "unit-test-group-i";
        final Group group = groupManager.createGroup(groupName);
        final JID fullJid = new JID("unit-test-user-i", "example.org", "unit-test-resource-i");

        final JID bareJid = fullJid.asBareJID();

        // Execute system under test.
        final boolean result = group.getAdmins().add(fullJid);

        // Verify results.
        assertTrue(result);
        assertTrue(group.getAdmins().contains(fullJid));
        assertTrue(group.getAdmins().contains(bareJid));
    }
Asserts that when a full JID is added to a group, its bare JID representation is added successfully.

@see <a href="https://igniterealtime.atlassian.net/browse/OF-2708">OF-2708: Ensure that Groups operate on bare JIDs</a>
xmppserver/src/test/java/org/jivesoftware/openfire/group/GroupTest.java