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