bind(PrincipalProvider.class).to(TestPrincipalProvider.class);
bind(Principal.class).toProvider(TestPrincipalProvider.class);
bind(EventSink.class).to(EventSinkForTesting.class);
AuthMethodInterceptorFactory amf = new AuthMethodInterceptorFactory();
requestInjection(amf);
authMethodInterceptor = new TestingInterceptor(amf);
bindInterceptor(Matchers.inPackage(Package.getPackage("org.candlepin.resource")),
new HttpMethodMatcher(), authMethodInterceptor);