ExperimenterInputMessageFactory factory = ExperimenterInputMessageFactory.getInstance();\r
factory.messageToBuffer(HelloMessageFactoryTest.VERSION_YET_SUPPORTED, out, message);\r
\r
- BufferHelper.checkHeaderV13(out, EXPERIMENTER_REQUEST_MESSAGE_CODE_TYPE, factory.computeLength());\r
+ BufferHelper.checkHeaderV13(out, EXPERIMENTER_REQUEST_MESSAGE_CODE_TYPE, factory.computeLength(message));\r
Assert.assertEquals("Wrong experimenter", 0x0001020304L, out.readUnsignedInt());\r
Assert.assertEquals("Wrong expType", 0x0001020304L, out.readUnsignedInt());\r
Assert.assertArrayEquals("Wrong data", message.getData(), readData(out));\r