SrpExtensionHandler extends ExtensionHandler<SRPExtensionMessage> { @Override public SRPExtensionSerializer getSerializer(SRPExtensionMessage message) { return new SRPExtensionSerializer(message); } SrpExtensionHandler(TlsContext context); @Override SRPExtensionParser getParser(byte[] message, int pointer); @Override SRPExtensionPreparator getPreparator(SRPExtensionMessage message); @Override SRPExtensionSerializer getSerializer(SRPExtensionMessage message); @Override void adjustTLSExtensionContext(SRPExtensionMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new SRPExtensionMessage()) instanceof SRPExtensionSerializer); }