public void testInterceptorSort() throws Exception
{
ModuleDefinition module = new SimpleModule();
ServicePointDefinition servicePoint = module.getServicePoint("Simple");
InterceptorDefinition interceptor1 = new OrderedInterceptorDefinitionImpl(module, "Fred", newLocation(), new TrackerServiceInterceptorConstructor("Fred"), "Barney", null);
servicePoint.addInterceptor(interceptor1);
InterceptorDefinition interceptor2 = new OrderedInterceptorDefinitionImpl(module, "Barney", newLocation(), new TrackerServiceInterceptorConstructor("Barney"), null, null);
servicePoint.addInterceptor(interceptor2);
InterceptorDefinition interceptor3 = new OrderedInterceptorDefinitionImpl(module, "Wilma", newLocation(), new TrackerServiceInterceptorConstructor("Wilma"), null, "Barney");
servicePoint.addInterceptor(interceptor3);
Registry r =
buildFrameworkRegistry(module);