SrtpExtensionHandler extends ExtensionHandler<SrtpExtensionMessage> { @Override public SrtpExtensionPreparator getPreparator(SrtpExtensionMessage message) { return new SrtpExtensionPreparator(context.getChooser(), message, getSerializer(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 testGetPreparator() { assertTrue(handler.getPreparator(new SrtpExtensionMessage()) instanceof SrtpExtensionPreparator); }