CachedInfoExtensionHandler extends ExtensionHandler<CachedInfoExtensionMessage> { @Override public CachedInfoExtensionParser getParser(byte[] message, int pointer) { return new CachedInfoExtensionParser(pointer, 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 testGetParser() { assertTrue(handler.getParser(new byte[0], 0) instanceof CachedInfoExtensionParser); }