src/main/java/org/fest/assertions/ObjectAssert.java
public @NotNull ObjectAssert isInstanceOfAny(@NotNull Class<?>... types) {
    isNotNull();
    checkNotNull(types);
    if (!foundInstanceOfAny(types)) {
      String format = "expected instance of any:<%s> but was instance of:<%s>";
      fail(String.format(format, typeNames(types), actual.getClass().getName()));
    }
    return this;
  }
public @NotNull ObjectAssert isInstanceOfAny(@NotNull Class<?>... types) {
    isNotNull();
    checkNotNull(types);
    if (!foundInstanceOfAny(types)) {
      String format = "expected instance of any:<%s> but was instance of:<%s>";
      fail(String.format(format, typeNames(types), actual.getClass().getName()));
    }
    return this;
  }
Verifies that the actual {@code Object} is an instance of any of the given types.

@param types the types to check the actual {@code Object} against.
@return this assertion object.
@throws AssertionError       if the actual {@code Object} is {@code null}.
@throws AssertionError       if the actual {@code Object} is not an instance of any of the given types.
@throws NullPointerException if the given array of types is {@code null}.
@throws NullPointerException if the given array of types contains {@code null}s.