PWDClearExtensionHandler extends ExtensionHandler<PWDClearExtensionMessage> { @Override public PWDClearExtensionParser getParser(byte[] message, int pointer) { return new PWDClearExtensionParser(pointer, 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 testGetParser() { assertTrue(handler.getParser(new byte[0], 0) instanceof PWDClearExtensionParser); }