KeyShareExtensionHandler extends ExtensionHandler<KeyShareExtensionMessage> { @Override public KeyShareExtensionParser getParser(byte[] message, int pointer) { return new KeyShareExtensionParser(pointer, message, type); } KeyShareExtensionHandler(TlsContext context, ExtensionType type); @Override KeyShareExtensionParser getParser(byte[] message, int pointer); @Override KeyShareExtensionPreparator getPreparator(KeyShareExtensionMessage message); @Override KeyShareExtensionSerializer getSerializer(KeyShareExtensionMessage message); @Override void adjustTLSExtensionContext(KeyShareExtensionMessage message);  }
@Test public void testGetParser() { assertTrue(handler.getParser(new byte[] { 0, 2, 3, }, 0) instanceof KeyShareExtensionParser); }