AlpnExtensionHandler extends ExtensionHandler<AlpnExtensionMessage> { @Override public AlpnExtensionPreparator getPreparator(AlpnExtensionMessage message) { return new AlpnExtensionPreparator(context.getChooser(), message, getSerializer(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 testGetPreparator() { assertTrue(handler.getPreparator(new AlpnExtensionMessage()) instanceof AlpnExtensionPreparator); }