TokenBindingExtensionHandler extends ExtensionHandler<TokenBindingExtensionMessage> { @Override public TokenBindingExtensionParser getParser(byte[] message, int pointer) { return new TokenBindingExtensionParser(pointer, message); } TokenBindingExtensionHandler(TlsContext context); @Override TokenBindingExtensionParser getParser(byte[] message, int pointer); @Override TokenBindingExtensionPreparator getPreparator(TokenBindingExtensionMessage message); @Override TokenBindingExtensionSerializer getSerializer(TokenBindingExtensionMessage message); @Override void adjustTLSExtensionContext(TokenBindingExtensionMessage message);  }
@Test public void testGetParser() { assertTrue(handler.getParser(extensionBytes, 0) instanceof TokenBindingExtensionParser); }