@Test
public void isTypeVariable() throws Exception {

  final class Foo<T> {
    @SuppressWarnings("unused")
    void foo(T t) {}
  }
  assertThat(Types.isTypeVariable(
      TypeToken.of(
          Foo.class.getDeclaredMethod("foo", Object.class).getGenericParameterTypes()[0])))
      .isTrue();
}