Unit test return the following error : java.lang.AssertionError: mock://result Body of message: 0.
Expected: <[{org.apache.camel.dataformat.bindy.model.fix.simple.Header=Model : org.apache.camel.dataformat.bindy.model.fix.simple.Header, FIX 4.1, 20, 10, INVMGR, BRKR, org.apache.camel.dataformat.bindy.model.fix.simple.Order=Model : org.apache.camel.dataformat.bindy.model.fix.simple.Order, BE.CHM.001, CHM0001-01, 4, BE0001245678, 1, this is a camel - bindy test, org.apache.camel.dataformat.bindy.model.fix.simple.Trailer=Model : org.apache.camel.dataformat.bindy.model.fix.simple.Trailer, 220}]> but was: <[{org.apache.camel.dataformat.bindy.model.fix.simple.Header=Model : org.apache.camel.dataformat.bindy.model.fix.simple.Header, FIX.4.1, 20, 10, INVMGR, BRKR, org.apache.camel.dataformat.bindy.model.fix.simple.Order=Model : org.apache.camel.dataformat.bindy.model.fix.simple.Order, BE.CHM.001, CHM0001-01, 4, BE0001245678, 1, this is a camel - bindy test, org.apache.camel.dataformat.bindy.model.fix.simple.Trailer=Model : org.apache.camel.dataformat.bindy.model.fix.simple.Trailer, 220}]> I don't understand why test fail because comparison of both is the same !!! Here is the method used to compare what I receive : result.expectedBodiesReceived() result = result endpoint Regards, Charles Moulliard Senior Enterprise Architect Apache Camel Committer ***************************** blog : http://cmoulliard.blogspot.com twitter : http://twitter.com/cmoulliard