PWDProtectExtensionHandler extends ExtensionHandler<PWDProtectExtensionMessage> { @Override public PWDProtectExtensionPreparator getPreparator(PWDProtectExtensionMessage message) { return new PWDProtectExtensionPreparator(context.getChooser(), message, getSerializer(message)); } PWDProtectExtensionHandler(TlsContext context); @Override PWDProtectExtensionParser getParser(byte[] message, int pointer); @Override PWDProtectExtensionPreparator getPreparator(PWDProtectExtensionMessage message); @Override PWDProtectExtensionSerializer getSerializer(PWDProtectExtensionMessage message); @Override void adjustTLSExtensionContext(PWDProtectExtensionMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new PWDProtectExtensionMessage()) instanceof PWDProtectExtensionPreparator); }