diff --git a/smack-core/src/main/java/org/jivesoftware/smack/packet/IQ.java b/smack-core/src/main/java/org/jivesoftware/smack/packet/IQ.java
index <HASH>..<HASH> 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/packet/IQ.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/packet/IQ.java
@@ -261,6 +261,8 @@ public abstract class IQ extends Stanza {
     }
 
     protected final void initializeAsResultFor(IQ request) {
+        assert this != request;
+
         if (!(request.getType() == Type.get || request.getType() == Type.set)) {
             throw new IllegalArgumentException(
                     "IQ must be of type 'set' or 'get'. Original IQ: " + request.toXML());
Add assert to IQ.initializeAsResultFor(IQ)

This method is not meant to be used to be invoked with the identity.