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