public static void assertInstanceOf(String objectName,Class<?> expectedClassType,Object actualObject){
  try {
    if (!expectedClassType.isInstance(actualObject)) {
      Assert.fail(objectName + " is not an instance of " + expectedClassType.getName());
    }
  }
 catch (  AssertionError e) {
    Verify.throwMangledException(e);
  }
}

public static void assertInstanceOf ( String objectName , Class < ? > expectedClassType , Object actualObject ) { try { if ( ! expectedClassType . isInstance ( actualObject ) ) { Assert . fail ( objectName + " is not an instance of " + expectedClassType . getName ( ) ) ; } } catch ( AssertionError e ) { Verify . throwMangledException ( e ) ; } }
assert that the given object is an instanceof expectedclasstype .
