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

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

        // Verify results.
        assertTrue(result);
        assertTrue(group.getAdmins().contains(fullJid)); // OF-2708: Contains check should be applied based on the bare-JID equivalent!
        assertTrue(group.getAdmins().contains(bareJid));
    }
Asserts that when a bare JID is added to a group, it 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