EcPointFormatExtensionHandler extends ExtensionHandler<ECPointFormatExtensionMessage> { @Override public ECPointFormatExtensionPreparator getPreparator(ECPointFormatExtensionMessage message) { return new ECPointFormatExtensionPreparator(context.getChooser(), message, getSerializer(message)); } EcPointFormatExtensionHandler(TlsContext context); @Override void adjustTLSExtensionContext(ECPointFormatExtensionMessage message); @Override ECPointFormatExtensionParser getParser(byte[] message, int pointer); @Override ECPointFormatExtensionPreparator getPreparator(ECPointFormatExtensionMessage message); @Override ECPointFormatExtensionSerializer getSerializer(ECPointFormatExtensionMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new ECPointFormatExtensionMessage()) instanceof ECPointFormatExtensionPreparator); }