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