Program: 49236
Project: 49236
Buggy source:
@Override public void configure(){
  bindScope(TestSingleton.class,TestScope.SINGLETON);
  CandlepinCache mockedCandlepinCache=mock(CandlepinCache.class);
  when(mockedCandlepinCache.getProductCache()).thenReturn(mock(Cache.class));
  when(mockedCandlepinCache.getStatusCache()).thenReturn(mock(Cache.class));
  bind(Configuration.class).toInstance(config);
  bind(CandlepinCache.class).toInstance(mockedCandlepinCache);
  CandlepinRequestScope requestScope=new CandlepinRequestScope();
  bindScope(CandlepinRequestScoped.class,requestScope);
  bindScope(RequestScoped.class,new TestingRequestScope());
  bind(CandlepinRequestScope.class).toInstance(requestScope);
  bind(X509ExtensionUtil.class);
  bind(ConsumerResource.class);
  bind(PoolResource.class);
  bind(EntitlementResource.class);
  bind(OwnerResource.class);
  bind(EnvironmentResource.class);
  bind(SubscriptionResource.class);
  bind(ActivationKeyResource.class);
  bind(ProductServiceAdapter.class).to(DefaultProductServiceAdapter.class);
  bind(ProductResource.class);
  bind(DateSource.class).to(DateSourceForTesting.class).asEagerSingleton();
  bind(Enforcer.class).to(EnforcerForTesting.class);
  bind(SubjectKeyIdentifierWriter.class).to(DefaultSubjectKeyIdentifierWriter.class);
  bind(PKIUtility.class).to(BouncyCastlePKIUtility.class);
  bind(PKIReader.class).to(PKIReaderForTesting.class).asEagerSingleton();
  bind(SubscriptionServiceAdapter.class).to(ImportSubscriptionServiceAdapter.class);
  bind(OwnerServiceAdapter.class).to(DefaultOwnerServiceAdapter.class);
  bind(EntitlementCertServiceAdapter.class).to(StubEntitlementCertServiceAdapter.class);
  bind(ManifestFileService.class).to(DBManifestService.class);
  bind(ContentAccessCertServiceAdapter.class).to(DefaultContentAccessCertServiceAdapter.class);
  bind(ScriptEngineProvider.class);
  bind(JobFactory.class).to(GuiceJobFactory.class);
  bind(JobListener.class).to(PinsetterJobListener.class);
  bind(UserServiceAdapter.class).to(DefaultUserServiceAdapter.class);
  bind(JsRunnerProvider.class).asEagerSingleton();
  bind(JsRunner.class).toProvider(JsRunnerProvider.class);
  bind(PrincipalProvider.class).to(TestPrincipalProvider.class);
  bind(Principal.class).toProvider(TestPrincipalProvider.class);
  bind(EventSink.class).to(NoopEventSinkImpl.class);
  bind(ExportExtensionAdapter.class).to(DefaultExportExtensionAdapter.class);
  bind(ResourceLocatorMap.class);
  bind(StoreFactory.class);
  VerifyAuthorizationFilterFactory amf=new VerifyAuthorizationFilterFactory();
  requestInjection(amf);
  authMethodInterceptor=new TestingInterceptor(amf);
  bind(TestingInterceptor.class).toInstance(authMethodInterceptor);
  bindInterceptor(Matchers.inPackage(Package.getPackage("String_Node_Str")),new HttpMethodMatcher(),authMethodInterceptor);
  bind(CertificateRevocationListTask.class);
  bind(IdentityCertServiceAdapter.class).to(DefaultIdentityCertServiceAdapter.class);
  bind(PoolRules.class);
  bind(CriteriaRules.class);
  bind(PoolManager.class).to(CandlepinPoolManager.class);
  bind(UniqueIdGenerator.class).to(DefaultUniqueIdGenerator.class);
  bind(Function.class).annotatedWith(Names.named("String_Node_Str")).to(ExpiryDateFunction.class).in(Singleton.class);
  bind(ModeManager.class).to(ModeManagerImpl.class).asEagerSingleton();
  bind(TriggerListener.class).to(PinsetterTriggerListener.class);
}

Fixed version (ground truth):
@Override public void configure(){
  bindScope(TestSingleton.class,TestScope.SINGLETON);
  CandlepinCache mockedCandlepinCache=mock(CandlepinCache.class);
  when(mockedCandlepinCache.getProductCache()).thenReturn(mock(Cache.class));
  when(mockedCandlepinCache.getStatusCache()).thenReturn(mock(StatusCache.class));
  bind(Configuration.class).toInstance(config);
  bind(CandlepinCache.class).toInstance(mockedCandlepinCache);
  CandlepinRequestScope requestScope=new CandlepinRequestScope();
  bindScope(CandlepinRequestScoped.class,requestScope);
  bindScope(RequestScoped.class,new TestingRequestScope());
  bind(CandlepinRequestScope.class).toInstance(requestScope);
  bind(X509ExtensionUtil.class);
  bind(ConsumerResource.class);
  bind(PoolResource.class);
  bind(EntitlementResource.class);
  bind(OwnerResource.class);
  bind(EnvironmentResource.class);
  bind(SubscriptionResource.class);
  bind(ActivationKeyResource.class);
  bind(ProductServiceAdapter.class).to(DefaultProductServiceAdapter.class);
  bind(ProductResource.class);
  bind(DateSource.class).to(DateSourceForTesting.class).asEagerSingleton();
  bind(Enforcer.class).to(EnforcerForTesting.class);
  bind(SubjectKeyIdentifierWriter.class).to(DefaultSubjectKeyIdentifierWriter.class);
  bind(PKIUtility.class).to(BouncyCastlePKIUtility.class);
  bind(PKIReader.class).to(PKIReaderForTesting.class).asEagerSingleton();
  bind(SubscriptionServiceAdapter.class).to(ImportSubscriptionServiceAdapter.class);
  bind(OwnerServiceAdapter.class).to(DefaultOwnerServiceAdapter.class);
  bind(EntitlementCertServiceAdapter.class).to(StubEntitlementCertServiceAdapter.class);
  bind(ManifestFileService.class).to(DBManifestService.class);
  bind(ContentAccessCertServiceAdapter.class).to(DefaultContentAccessCertServiceAdapter.class);
  bind(ScriptEngineProvider.class);
  bind(JobFactory.class).to(GuiceJobFactory.class);
  bind(JobListener.class).to(PinsetterJobListener.class);
  bind(UserServiceAdapter.class).to(DefaultUserServiceAdapter.class);
  bind(JsRunnerProvider.class).asEagerSingleton();
  bind(JsRunner.class).toProvider(JsRunnerProvider.class);
  bind(PrincipalProvider.class).to(TestPrincipalProvider.class);
  bind(Principal.class).toProvider(TestPrincipalProvider.class);
  bind(EventSink.class).to(NoopEventSinkImpl.class);
  bind(ExportExtensionAdapter.class).to(DefaultExportExtensionAdapter.class);
  bind(ResourceLocatorMap.class);
  bind(StoreFactory.class);
  VerifyAuthorizationFilterFactory amf=new VerifyAuthorizationFilterFactory();
  requestInjection(amf);
  authMethodInterceptor=new TestingInterceptor(amf);
  bind(TestingInterceptor.class).toInstance(authMethodInterceptor);
  bindInterceptor(Matchers.inPackage(Package.getPackage("String_Node_Str")),new HttpMethodMatcher(),authMethodInterceptor);
  bind(CertificateRevocationListTask.class);
  bind(IdentityCertServiceAdapter.class).to(DefaultIdentityCertServiceAdapter.class);
  bind(PoolRules.class);
  bind(CriteriaRules.class);
  bind(PoolManager.class).to(CandlepinPoolManager.class);
  bind(UniqueIdGenerator.class).to(DefaultUniqueIdGenerator.class);
  bind(Function.class).annotatedWith(Names.named("String_Node_Str")).to(ExpiryDateFunction.class).in(Singleton.class);
  bind(ModeManager.class).to(ModeManagerImpl.class).asEagerSingleton();
  bind(TriggerListener.class).to(PinsetterTriggerListener.class);
}