PWDProtectExtensionHandler extends ExtensionHandler<PWDProtectExtensionMessage> { @Override public PWDProtectExtensionSerializer getSerializer(PWDProtectExtensionMessage message) { return new PWDProtectExtensionSerializer(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 testGetSerializer() { assertTrue(handler.getSerializer(new PWDProtectExtensionMessage()) instanceof PWDProtectExtensionSerializer); }