TokenBindingExtensionHandler extends ExtensionHandler<TokenBindingExtensionMessage> { @Override public TokenBindingExtensionPreparator getPreparator(TokenBindingExtensionMessage message) { return new TokenBindingExtensionPreparator(context.getChooser(), message, getSerializer(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 testGetPreparator() { assertTrue(handler.getPreparator(new TokenBindingExtensionMessage()) instanceof TokenBindingExtensionPreparator); }