ServerAuthzExtensionHandler extends ExtensionHandler<ServerAuthzExtensionMessage> { @Override public ServerAuthzExtensionPreparator getPreparator(ServerAuthzExtensionMessage message) { return new ServerAuthzExtensionPreparator(context.getChooser(), message, getSerializer(message)); } ServerAuthzExtensionHandler(TlsContext context); @Override ServerAuthzExtensionParser getParser(byte[] message, int pointer); @Override ServerAuthzExtensionPreparator getPreparator(ServerAuthzExtensionMessage message); @Override ServerAuthzExtensionSerializer getSerializer(ServerAuthzExtensionMessage message); @Override void adjustTLSExtensionContext(ServerAuthzExtensionMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new ServerAuthzExtensionMessage()) instanceof ServerAuthzExtensionPreparator); }