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