@Test
  public void isTypeOf_fail() {
    TypeMirror methodType =
        Iterables.getOnlyElement(getTypeElementFor(TestType.class).getEnclosedElements()).asType();
    assertFalse(MoreTypes.isType(methodType));
    try {
      MoreTypes.isTypeOf(List.class, methodType);
      fail();
    } catch (IllegalArgumentException expected) {
    }
  }
Tests {@link MoreTypes#isTypeOf(Class, TypeMirror)}.
common/src/test/java/com/google/auto/common/MoreTypesIsTypeOfTest.java