@Test
public void test() {

    TypeToken<?> typeToken = new TypeToken<Collection<String>>() { };
    Assert.assertTrue(typeToken.getJavaType() instanceof ParameterizedType);
    Assert.assertEquals(((ParameterizedType) typeToken.getJavaType()).getRawType(), Collection.class);
    Assert.assertEquals(((ParameterizedType) typeToken.getJavaType()).getActualTypeArguments().length, 1);
    Assert.assertEquals(((ParameterizedType) typeToken.getJavaType()).getActualTypeArguments()[0], String.class);
}