controllerClasses.add(TestMethodInterceptorController2.class);
FakeRouteMap rm = new FakeRouteMap();
ControllerDatabase db = new MappedControllerDatabase(controllerClasses, rm,
new HashMap<String, EntityMarshaller>());
FastClass fc = db.getFastClass(TestMethodInterceptorController2.class);
assertNotNull(fc);
assertEquals(TestMethodInterceptorController2.class, fc.getJavaClass());
fc = db.getFastClass(Interceptor1.class);
assertNotNull(fc);
assertEquals(Interceptor1.class, fc.getJavaClass());
fc = db.getFastClass(Interceptor2.class);
assertNotNull(fc);
assertEquals(Interceptor2.class, fc.getJavaClass());
List<Class<?>> interceptors = db.getInterceptorsForAction(TestMethodInterceptorController2.class, "someAction");
assertNotNull(interceptors);
assertEquals(2, interceptors.size());