@Test
  public void isTypeOf_arrayType() {
    TypeMirror type = typeUtils.getArrayType(getTypeElementFor(String.class).asType());
    assertWithMessage("Mirror:\t" + type + "\nClass:\t" + String[].class.getCanonicalName())
        .that(MoreTypes.isTypeOf(String[].class, type))
        .isTrue();
    assertWithMessage("Mirror:\t" + type + "\nClass:\t" + Integer[].class.getCanonicalName())
        .that(MoreTypes.isTypeOf(Integer[].class, type))
        .isFalse();
    assertWithMessage("Mirror:\t" + type + "\nClass:\t" + int[].class.getCanonicalName())
        .that(MoreTypes.isTypeOf(int[].class, type))
        .isFalse();

    type = typeUtils.getArrayType(typeUtils.getPrimitiveType(TypeKind.INT));
    assertWithMessage("Mirror:\t" + type + "\nClass:\t" + String[].class.getCanonicalName())
        .that(MoreTypes.isTypeOf(String[].class, type))
        .isFalse();
    assertWithMessage("Mirror:\t" + type + "\nClass:\t" + Integer[].class.getCanonicalName())
        .that(MoreTypes.isTypeOf(Integer[].class, type))
        .isFalse();
    assertWithMessage("Mirror:\t" + type + "\nClass:\t" + int[].class.getCanonicalName())
        .that(MoreTypes.isTypeOf(int[].class, type))
        .isTrue();
  }
Tests {@link MoreTypes#isTypeOf(Class, TypeMirror)}.
common/src/test/java/com/google/auto/common/MoreTypesIsTypeOfTest.java