ProtocolFactory { protected static synchronized void registerAdaptiveProtocol(ProtocolInfo protocolInfo) { maxMagicOffset = Math.max(maxMagicOffset, protocolInfo.magicFieldOffset() + protocolInfo.magicFieldLength()); }  static Protocol getProtocol(String alias); static Protocol getProtocol(byte code); static Byte getCodeByAlias(String protocol); static Protocol adaptiveProtocol(byte[] magicHeadBytes); static int getMaxMagicOffset();  }
@Test public void registerAdaptiveProtocol() throws Exception { }