0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, (byte) 0xc4, 0x00, 0x00, 0x00,
0x08, 0x00, 0x02, 0x00, 0x00 };
OFMessageFactory factory = new BasicFactory();
ByteBuffer packetBuf = ByteBuffer.wrap(packet);
List<OFMessage> msgs = factory.parseMessages(packetBuf, packet.length);
TestCase.assertEquals(1, msgs.size());
TestCase.assertTrue(msgs.get(0) instanceof OFStatisticsReply);
OFStatisticsReply sr = (OFStatisticsReply) msgs.get(0);
TestCase.assertEquals(OFStatisticsType.FLOW, sr.getStatisticType());
TestCase.assertEquals(3, sr.getStatistics().size());