RenegotiationInfoExtensionHandler extends ExtensionHandler<RenegotiationInfoExtensionMessage> { @Override public RenegotiationInfoExtensionSerializer getSerializer(RenegotiationInfoExtensionMessage message) { return new RenegotiationInfoExtensionSerializer(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 testGetSerializer() { assertTrue(handler.getSerializer(new RenegotiationInfoExtensionMessage()) instanceof RenegotiationInfoExtensionSerializer); }