public static ParameterizedType listOf(Type elementType) {
    return parameterizedType(List.class, elementType);
  }
@Test
  public void createListType() {
    ParameterizedType type = Types.listOf(Person.class);
    assertThat(type.getRawType()).isEqualTo(List.class);
    assertThat(type.getActualTypeArguments()).isEqualTo(new Type[] {Person.class});
  }