CachedInfoExtensionHandler extends ExtensionHandler<CachedInfoExtensionMessage> { @Override public CachedInfoExtensionPreparator getPreparator(CachedInfoExtensionMessage message) { return new CachedInfoExtensionPreparator(context.getChooser(), message, getSerializer(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 testGetPreparator() { assertTrue(handler.getPreparator(new CachedInfoExtensionMessage()) instanceof CachedInfoExtensionPreparator); }