Program: 34638
Project: 34638
Buggy source:
@Before public void setUp(){
  cdi=mockery.mock(CDI.class);
  mechanism=new BasicHttpAuthenticationMechanism(){
    @SuppressWarnings("String_Node_Str") @Override protected CDI getCDI(){
      return cdi;
    }
  }
;
  realmName="String_Node_Str";
  request=mockery.mock(HttpServletRequest.class);
  response=mockery.mock(HttpServletResponse.class);
  httpMessageContext=mockery.mock(HttpMessageContext.class);
  clientSubject=new Subject();
  String authzValue=Base64Coder.base64Encode("String_Node_Str");
  authzHeader="String_Node_Str" + authzValue;
  iis=mockery.mock(Instance.class,"String_Node_Str");
  identityStoreHandler=mockery.mock(IdentityStoreHandler.class);
  bm=mockery.mock(BeanManager.class,"String_Node_Str");
  principalName="String_Node_Str";
  callerPrincipal=new CallerPrincipal(principalName);
  groups=new HashSet<String>();
  validResult=new CredentialValidationResult(callerPrincipal,groups);
  callbackHandler=mockery.mock(CallbackHandler.class);
  mpp=mockery.mock(ModulePropertiesProvider.class);
  mechanism.setMPP(mpp);
  ap=mockery.mock(AuthenticationParameters.class);
  coCred=new CallerOnlyCredential("String_Node_Str");
  upCred=new UsernamePasswordCredential("String_Node_Str","String_Node_Str");
  invalidUpCred=new UsernamePasswordCredential("String_Node_Str","String_Node_Str");
  baCred=new BasicAuthenticationCredential(authzValue);
  cdis=mockery.mock(CDIService.class);
  cdiHelperTestWrapper=new CDIHelperTestWrapper(mockery,null);
  cdiHelperTestWrapper.setCDIService(cdis);
}

Fixed version (ground truth):
@Before public void setUp(){
  cdi=mockery.mock(CDI.class);
  Utils utils=new Utils(){
    @Override protected boolean isRegistryAvailable(){
      return isRegistryAvailable;
    }
  }
;
  mechanism=new BasicHttpAuthenticationMechanism(utils){
    @SuppressWarnings("String_Node_Str") @Override protected CDI getCDI(){
      return cdi;
    }
  }
;
  realmName="String_Node_Str";
  request=mockery.mock(HttpServletRequest.class);
  response=mockery.mock(HttpServletResponse.class);
  httpMessageContext=mockery.mock(HttpMessageContext.class);
  clientSubject=new Subject();
  String authzValue=Base64Coder.base64Encode("String_Node_Str");
  authzHeader="String_Node_Str" + authzValue;
  iis=mockery.mock(Instance.class,"String_Node_Str");
  identityStoreHandler=mockery.mock(IdentityStoreHandler.class);
  bm=mockery.mock(BeanManager.class,"String_Node_Str");
  principalName="String_Node_Str";
  callerPrincipal=new CallerPrincipal(principalName);
  groups=new HashSet<String>();
  validResult=new CredentialValidationResult(callerPrincipal,groups);
  callbackHandler=mockery.mock(CallbackHandler.class);
  mpp=mockery.mock(ModulePropertiesProvider.class);
  mechanism.setMPP(mpp);
  ap=mockery.mock(AuthenticationParameters.class);
  coCred=new CallerOnlyCredential("String_Node_Str");
  upCred=new UsernamePasswordCredential("String_Node_Str","String_Node_Str");
  invalidUpCred=new UsernamePasswordCredential("String_Node_Str","String_Node_Str");
  baCred=new BasicAuthenticationCredential(authzValue);
  cdis=mockery.mock(CDIService.class);
  cdiHelperTestWrapper=new CDIHelperTestWrapper(mockery,null);
  cdiHelperTestWrapper.setCDIService(cdis);
}