TruncatedHmacExtensionHandler extends ExtensionHandler<TruncatedHmacExtensionMessage> { @Override public TruncatedHmacExtensionPreparator getPreparator(TruncatedHmacExtensionMessage message) { return new TruncatedHmacExtensionPreparator(context.getChooser(), message, getSerializer(message)); } TruncatedHmacExtensionHandler(TlsContext context); @Override TruncatedHmacExtensionParser getParser(byte[] message, int pointer); @Override TruncatedHmacExtensionPreparator getPreparator(TruncatedHmacExtensionMessage message); @Override TruncatedHmacExtensionSerializer getSerializer(TruncatedHmacExtensionMessage message); @Override void adjustTLSExtensionContext(TruncatedHmacExtensionMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new TruncatedHmacExtensionMessage()) instanceof TruncatedHmacExtensionPreparator); }