PaddingExtensionHandler extends ExtensionHandler<PaddingExtensionMessage> { @Override public PaddingExtensionPreparator getPreparator(PaddingExtensionMessage message) { return new PaddingExtensionPreparator(context.getChooser(), message, getSerializer(message)); } PaddingExtensionHandler(TlsContext context); @Override PaddingExtensionParser getParser(byte[] message, int pointer); @Override PaddingExtensionPreparator getPreparator(PaddingExtensionMessage message); @Override PaddingExtensionSerializer getSerializer(PaddingExtensionMessage message); @Override void adjustTLSExtensionContext(PaddingExtensionMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new PaddingExtensionMessage()) instanceof PaddingExtensionPreparator); }