PasswordSaltExtensionHandler extends ExtensionHandler<PasswordSaltExtensionMessage> { @Override public PasswordSaltExtensionPreparator getPreparator(PasswordSaltExtensionMessage message) { return new PasswordSaltExtensionPreparator(context.getChooser(), message, getSerializer(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 testGetPreparator() { assertTrue(handler.getPreparator(new PasswordSaltExtensionMessage()) instanceof PasswordSaltExtensionPreparator); }