controllerClasses.add(TestMethodInterceptorController6.class);
FakeRouteMap rm = new FakeRouteMap();
ControllerDatabase db = new MappedControllerDatabase(controllerClasses, rm,
new HashMap<String, EntityMarshaller>());
FastClass fc = db.getFastClass(TestInterceptorController1.class);
assertNotNull(fc);
assertEquals(TestInterceptorController1.class, fc.getJavaClass());
fc = db.getFastClass(TestInterceptorController2.class);
assertNotNull(fc);
assertEquals(TestInterceptorController2.class, fc.getJavaClass());
fc = db.getFastClass(TestMethodInterceptorController1.class);
assertNotNull(fc);
assertEquals(TestMethodInterceptorController1.class, fc.getJavaClass());
fc = db.getFastClass(TestMethodInterceptorController2.class);
assertNotNull(fc);
assertEquals(TestMethodInterceptorController2.class, fc.getJavaClass());
fc = db.getFastClass(TestMethodInterceptorController4.class);
assertNotNull(fc);
assertEquals(TestMethodInterceptorController4.class, fc.getJavaClass());
fc = db.getFastClass(TestMethodInterceptorController5.class);
assertNotNull(fc);
assertEquals(TestMethodInterceptorController5.class, fc.getJavaClass());
fc = db.getFastClass(TestMethodInterceptorController6.class);
assertNotNull(fc);
assertEquals(TestMethodInterceptorController6.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());
fc = db.getFastClass(Interceptor3.class);
assertNotNull(fc);
assertEquals(Interceptor3.class, fc.getJavaClass());
List<Class<?>> interceptors = db.getInterceptorsFor(TestInterceptorController1.class);
assertNotNull(interceptors);
assertEquals(1, interceptors.size());