UnknownExtensionHandler extends ExtensionHandler<UnknownExtensionMessage> { @Override public UnknownExtensionParser getParser(byte[] message, int pointer) { return new UnknownExtensionParser(pointer, 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 testGetParser() { assertTrue(handler.getParser(new byte[] { 0, 1, 2, 3, 4 }, 0) instanceof UnknownExtensionParser); }