ProtocolFactory { public static Byte getCodeByAlias(String protocol) { return TYPE_CODE_MAP.get(protocol); }  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 getCodeByAlias() throws Exception { Assert.assertTrue(ProtocolFactory.getCodeByAlias("xx") == 121); }