TokenBindingExtensionHandler extends ExtensionHandler<TokenBindingExtensionMessage> { @Override public TokenBindingExtensionSerializer getSerializer(TokenBindingExtensionMessage message) { return new TokenBindingExtensionSerializer(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 testGetSerializer() { assertTrue(handler.getSerializer(new TokenBindingExtensionMessage()) instanceof TokenBindingExtensionSerializer); }