AlpnExtensionHandler extends ExtensionHandler<AlpnExtensionMessage> { @Override public AlpnExtensionSerializer getSerializer(AlpnExtensionMessage message) { return new AlpnExtensionSerializer(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 testGetSerializer() { assertTrue(handler.getSerializer(new AlpnExtensionMessage()) instanceof AlpnExtensionSerializer); }