@Test
public void testEmptyMapping() {

    DefaultRoleToGroupMapper mapper = new DefaultRoleToGroupMapper();
    List<String> result = mapper.groupsFromRoles(new ArrayList<String>());
    assertNotNull(result);
    assertEquals(0, result.size());
}