public Group getGroup(JID jid) throws GroupNotFoundException {
        JID groupJID = GroupJID.fromJID(jid);
        return (groupJID instanceof GroupJID) ? getGroup(((GroupJID)groupJID).getGroupName()) : null;
    }
@Test
    public void aForceLookupHitWillIgnoreTheExistingCache() throws Exception {
        groupCache.put(GROUP_NAME, CacheableOptional.of(cachedGroup));
        doReturn(unCachedGroup).when(groupProvider).getGroup(GROUP_NAME);

        final Group returnedGroup = groupManager.getGroup(GROUP_NAME, true);

        assertThat(returnedGroup, is(unCachedGroup));
        verify(groupProvider).getGroup(GROUP_NAME);
        assertThat(groupCache.get(GROUP_NAME), is(CacheableOptional.of(unCachedGroup)));
    }