@Test
void unserializeMapType() throws Exception
{

    Type mapType = new DefaultParameterizedType(null, Map.class, String.class, ComponentRole.class);
    assertEquals(mapType,
        ReflectionUtils.unserializeType(
            "java.util.Map<java.lang.String, " + "org.xwiki.component.descriptor.ComponentRole>",
            Thread.currentThread().getContextClassLoader()));
}