code: public static void setInternalState(Object object, Class<?> fieldType, Object value) {
          setField(object, value, findFieldInHierarchy(object, new AssignableFromFieldTypeMatcherStrategy(fieldType)));
      }
docs: Set the value of a field using reflection. This method will traverse the
  super class hierarchy until the first field of type <tt>fieldType</tt> is
  found. The <tt>value</tt> will then be assigned to this field.
  
  @param object    the object to modify
  @param fieldType the type of the field
  @param value     the new value of the field