{ fail(); }  if (!m1.getClass().equals(m2.getClass()))
   protected void checkEquivalent(Message m1, Message m2) throws Exception   {      if (m1 == m2)      {         fail();      }            if (m1 == null || m2 == null)      {         fail();      }            if (!m1.getClass().equals(m2.getClass()))      {         fail();      }            //Attributes from org.jboss.messaging.core.Message      assertEquals(m1.getMessageID(), m2.getMessageID());      assertEquals(m1.isReference(), m2.isReference());      assertEquals(m1.isReliable(), m2.isReliable());      assertEquals(m1.getExpiration(), m2.getExpiration());      assertEquals(m1.isExpired(), m2.isExpired());      assertEquals(m1.getTimestamp(), m2.getTimestamp());      assertEquals(m1.getPriority(), m2.getPriority());      assertEquals(m1.isRedelivered(), m2.isRedelivered());      Map m1Headers = m1.getHeaders();      Map m2Headers = m2.getHeaders();      checkMapsEquivalent(m1Headers, m2Headers);      checkMapsEquivalent(m2Headers, m1Headers);      assertEquals(m1.getPayload(), m2.getPayload());         }