@Test
public void testGetGroupMappingsWithTwoCouples() throws Exception
{

    this.mockery.checking(new Expectations()
    {{
        allowing(xwikiMock).getXWikiPreference("puma_groupsMapping", getContext()); will(returnValue("xwikigroup=pumagroup|xwikigroup2=pumagroup2"));
    }});
    Map<String, Collection<String>> groupMapping = this.config.getGroupMapping(getContext());
    Assert.assertEquals(new HashSet<String>(Arrays.asList("xwikigroup")), groupMapping.get("pumagroup"));
    Assert.assertEquals(new HashSet<String>(Arrays.asList("xwikigroup2")), groupMapping.get("pumagroup2"));
}