SrtpExtensionHandler extends ExtensionHandler<SrtpExtensionMessage> { @Override public SrtpExtensionSerializer getSerializer(SrtpExtensionMessage message) { return new SrtpExtensionSerializer(message); } SrtpExtensionHandler(TlsContext context); @Override SrtpExtensionParser getParser(byte[] message, int pointer); @Override SrtpExtensionPreparator getPreparator(SrtpExtensionMessage message); @Override SrtpExtensionSerializer getSerializer(SrtpExtensionMessage message); @Override void adjustTLSExtensionContext(SrtpExtensionMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new SrtpExtensionMessage()) instanceof SrtpExtensionSerializer); }