@Test
public void testFromBytes() throws Exception {
RequestProtocol rp = new RequestProtocol("lookup", "methodname", null);
Protocol p = new Protocol(101001, (byte)1, SDPType.Request, rp);
byte[] buffer = p.toBytes();
Protocol p2 = (Protocol)ProtocolHelper.fromBytes(buffer);
Assert.assertEquals(rp.getLookup(), ((RequestProtocol)p2.getSdpEntity()).getLookup());
Assert.assertEquals(rp.getMethodName(), ((RequestProtocol)p2.getSdpEntity()).getMethodName());
}