@Test
public <D> void typeVariableTest() {

    TypeToken<?> typeToken = new TypeToken<D>() { };
    Assert.assertTrue(typeToken.getJavaType() instanceof TypeVariable);
    Assert.assertEquals(((TypeVariable) typeToken.getJavaType()).getName(), "D");
}