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