@Test
void genericType() {

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