InterceptorRegistry registry = new InterceptorRegistry(Object.class, ResteasyProviderFactory.getInstance());
registry.appendPrecedence("A");
registry.appendPrecedence("B");
registry.appendPrecedence("C");
registry.appendPrecedence("D");
registry.insertPrecedenceAfter("C", "AfterC");
registry.insertPrecedenceBefore("B", "BeforeB");
registry.insertPrecedenceBefore("A", "BeforeA");
registry.insertPrecedenceAfter("D", "AfterD");
registry.register(PrecedenceTest.class);