@Test
void unserializeTypeWithGenerics() throws Exception
{

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