PWDClearExtensionHandler extends ExtensionHandler<PWDClearExtensionMessage> { @Override public PWDClearExtensionPreparator getPreparator(PWDClearExtensionMessage message) { return new PWDClearExtensionPreparator(context.getChooser(), message, getSerializer(message)); } PWDClearExtensionHandler(TlsContext context); @Override void adjustTLSExtensionContext(PWDClearExtensionMessage message); @Override PWDClearExtensionParser getParser(byte[] message, int pointer); @Override PWDClearExtensionPreparator getPreparator(PWDClearExtensionMessage message); @Override PWDClearExtensionSerializer getSerializer(PWDClearExtensionMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new PWDClearExtensionMessage()) instanceof PWDClearExtensionPreparator); }