RenegotiationInfoExtensionHandler extends ExtensionHandler<RenegotiationInfoExtensionMessage> { @Override public RenegotiationInfoExtensionPreparator getPreparator(RenegotiationInfoExtensionMessage message) { return new RenegotiationInfoExtensionPreparator(context.getChooser(), message, getSerializer(message)); } RenegotiationInfoExtensionHandler(TlsContext context); @Override RenegotiationInfoExtensionParser getParser(byte[] message, int pointer); @Override RenegotiationInfoExtensionPreparator getPreparator(RenegotiationInfoExtensionMessage message); @Override RenegotiationInfoExtensionSerializer getSerializer(RenegotiationInfoExtensionMessage message); @Override void adjustTLSExtensionContext(RenegotiationInfoExtensionMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new RenegotiationInfoExtensionMessage()) instanceof RenegotiationInfoExtensionPreparator); }