TruncatedHmacExtensionHandler extends ExtensionHandler<TruncatedHmacExtensionMessage> { @Override public TruncatedHmacExtensionParser getParser(byte[] message, int pointer) { return new TruncatedHmacExtensionParser(pointer, 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 testGetParser() { assertTrue(handler.getParser(new byte[0], 0) instanceof TruncatedHmacExtensionParser); }