PasswordSaltExtensionHandler extends ExtensionHandler<PasswordSaltExtensionMessage> { @Override public PasswordSaltExtensionSerializer getSerializer(PasswordSaltExtensionMessage message) { return new PasswordSaltExtensionSerializer(message); } PasswordSaltExtensionHandler(TlsContext context); @Override void adjustTLSExtensionContext(PasswordSaltExtensionMessage message); @Override PasswordSaltExtensionParser getParser(byte[] message, int pointer); @Override PasswordSaltExtensionPreparator getPreparator(PasswordSaltExtensionMessage message); @Override PasswordSaltExtensionSerializer getSerializer(PasswordSaltExtensionMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new PasswordSaltExtensionMessage()) instanceof PasswordSaltExtensionSerializer); }