@Test
  public void isTypeOf_declaredType() {
    TypeMirror TestTypeTypeMirror = getTypeElementFor(TestType.class).asType();
    assertTrue(MoreTypes.isType(TestTypeTypeMirror));
    assertWithMessage(
            "Mirror:\t" + TestTypeTypeMirror + "\nClass:\t" + TestType.class.getCanonicalName())
        .that(MoreTypes.isTypeOf(TestType.class, TestTypeTypeMirror))
        .isTrue();
    assertWithMessage(
            "Mirror:\t" + TestTypeTypeMirror + "\nClass:\t" + String.class.getCanonicalName())
        .that(MoreTypes.isTypeOf(String.class, TestTypeTypeMirror))
        .isFalse();
  }
Tests {@link MoreTypes#isTypeOf(Class, TypeMirror)}.
common/src/test/java/com/google/auto/common/MoreTypesIsTypeOfTest.java