@Test
void testGenericType() {

    final ParameterizedType genericType = (ParameterizedType) DefaultType.genericType(List.class, String.class.getName());
    assertEquals(List.class.getName(), genericType.getRawType().getTypeName());
    assertArrayEquals(new String[]{String.class.getName()}, Stream.of(genericType.getActualTypeArguments()).map(Type::getTypeName).toArray());
}