EncryptThenMacExtensionHandler extends ExtensionHandler<EncryptThenMacExtensionMessage> { @Override public EncryptThenMacExtensionSerializer getSerializer(EncryptThenMacExtensionMessage message) { return new EncryptThenMacExtensionSerializer(message); } EncryptThenMacExtensionHandler(TlsContext context); @Override EncryptThenMacExtensionParser getParser(byte[] message, int pointer); @Override EncryptThenMacExtensionPreparator getPreparator(EncryptThenMacExtensionMessage message); @Override EncryptThenMacExtensionSerializer getSerializer(EncryptThenMacExtensionMessage message); @Override void adjustTLSExtensionContext(EncryptThenMacExtensionMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new EncryptThenMacExtensionMessage()) instanceof EncryptThenMacExtensionSerializer); }