CachedInfoExtensionHandler extends ExtensionHandler<CachedInfoExtensionMessage> { @Override public CachedInfoExtensionSerializer getSerializer(CachedInfoExtensionMessage message) { return new CachedInfoExtensionSerializer(message); } CachedInfoExtensionHandler(TlsContext context); @Override CachedInfoExtensionParser getParser(byte[] message, int pointer); @Override CachedInfoExtensionPreparator getPreparator(CachedInfoExtensionMessage message); @Override CachedInfoExtensionSerializer getSerializer(CachedInfoExtensionMessage message); @Override void adjustTLSExtensionContext(CachedInfoExtensionMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new CachedInfoExtensionMessage()) instanceof CachedInfoExtensionSerializer); }