UnknownExtensionHandler extends ExtensionHandler<UnknownExtensionMessage> { @Override public UnknownExtensionSerializer getSerializer(UnknownExtensionMessage message) { return new UnknownExtensionSerializer(message); } UnknownExtensionHandler(TlsContext context); @Override void adjustTLSExtensionContext(UnknownExtensionMessage message); @Override UnknownExtensionParser getParser(byte[] message, int pointer); @Override UnknownExtensionPreparator getPreparator(UnknownExtensionMessage message); @Override UnknownExtensionSerializer getSerializer(UnknownExtensionMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new UnknownExtensionMessage()) instanceof UnknownExtensionSerializer); }