AlpnExtensionHandler extends ExtensionHandler<AlpnExtensionMessage> { @Override public AlpnExtensionParser getParser(byte[] message, int pointer) { return new AlpnExtensionParser(pointer, message); } AlpnExtensionHandler(TlsContext context); @Override AlpnExtensionParser getParser(byte[] message, int pointer); @Override AlpnExtensionPreparator getPreparator(AlpnExtensionMessage message); @Override AlpnExtensionSerializer getSerializer(AlpnExtensionMessage message); @Override void adjustTLSExtensionContext(AlpnExtensionMessage message);  }
@Test public void testGetParser() { assertTrue(handler.getParser(new byte[0], 0) instanceof AlpnExtensionParser); }