0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
(byte) 0xff, 0x00, (byte) 0xff, (byte) 0xff };
OFMessageFactory factory = BasicFactory.getInstance();
ChannelBuffer packetBuf = ChannelBuffers.wrappedBuffer(packet);
List<OFMessage> msg = factory.parseMessage(packetBuf);
TestCase.assertNotNull(msg);
TestCase.assertEquals(msg.size(), 1);
TestCase.assertTrue(msg.get(0) instanceof OFStatisticsRequest);
OFStatisticsRequest sr = (OFStatisticsRequest) msg.get(0);
TestCase.assertEquals(OFStatisticsType.FLOW, sr.getStatisticType());