public Group getGroup(JID jid) throws GroupNotFoundException {
        JID groupJID = GroupJID.fromJID(jid);
        return (groupJID instanceof GroupJID) ? getGroup(((GroupJID)groupJID).getGroupName()) : null;
    }
@Test
    public void willUseACacheHit() throws Exception {

        groupCache.put(GROUP_NAME, CacheableOptional.of(cachedGroup));

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

        assertThat(returnedGroup, is(cachedGroup));
        verifyNoMoreInteractions(groupProvider);
    }