public static Class < ? > getInstanceClass ( Object instance ) { Class < ? > clazz = instance . getClass ( ) ; return ( instance instanceof Hooked ) ? clazz . getSuperclass ( ) : clazz ; }
Get class of specified test class instance .