Program: 89087
Project: 89087
Buggy source:
/** 
 * Set up four users with different clearances and a site containing four documents at different classification levels.
 */
@Test(groups={"String_Node_Str"}) public void setupTestData() throws Exception {
  for (  String user : Arrays.asList(UNCLASSIFIED_USER,CONFIDENTIAL_USER,SECRET_USER,TOP_SECRET_USER)) {
    dataPrepHelper.createUser(user);
  }
  openPage(securityClearancePage).setClearance(CONFIDENTIAL_USER,CONFIDENTIAL_CLASSIFICATION_LEVEL_TEXT).clickOnConfirm(securityClearancePage).setClearance(SECRET_USER,SECRET_CLASSIFICATION_LEVEL_TEXT).clickOnConfirm(securityClearancePage).setClearance(TOP_SECRET_USER,TOP_SECRET_CLASSIFICATION_LEVEL_TEXT).clickOnConfirm(securityClearancePage);
  dataPrepHelper.createSite(SEARCH_TEST_SITE_NAME,SEARCH_TEST_SITE_ID);
  for (  String user : Arrays.asList(UNCLASSIFIED_USER,CONFIDENTIAL_USER,SECRET_USER,TOP_SECRET_USER)) {
    userService.inviteUserToSiteAndAccept(user,getAdminName(),getAdminPassword(),SEARCH_TEST_SITE_ID,"String_Node_Str");
  }
  openPage(documentLibrary,SEARCH_TEST_SITE_ID);
  for (  String documentName : Arrays.asList(UNCLASSIFIED_DOCUMENT,CONFIDENTIAL_DOCUMENT,SECRET_DOCUMENT,TOP_SECRET_DOCUMENT)) {
    contentService.createDocument(getAdminName(),getAdminPassword(),SEARCH_TEST_SITE_ID,DocumentType.TEXT_PLAIN,documentName,TEST_CONTENT);
  }
  openPage(documentLibrary,SEARCH_TEST_SITE_ID);
  classifyDocument(CONFIDENTIAL_DOCUMENT,CONFIDENTIAL_CLASSIFICATION_LEVEL_TEXT);
  classifyDocument(SECRET_DOCUMENT,SECRET_CLASSIFICATION_LEVEL_TEXT);
  classifyDocument(TOP_SECRET_DOCUMENT,TOP_SECRET_CLASSIFICATION_LEVEL_TEXT);
  new FluentWait<WebDriver>(Utils.getWebDriver()).withTimeout(10,TimeUnit.SECONDS).pollingEvery(1,TimeUnit.SECONDS).until(documentsAvailableForSearch);
}

Fixed version (ground truth):
/** 
 * Set up four users with different clearances and a site containing four documents at different classification levels.
 */
@Test(groups={"String_Node_Str"}) public void setupTestData() throws Exception {
  for (  String user : Arrays.asList(UNCLASSIFIED_USER,CONFIDENTIAL_USER,SECRET_USER,TOP_SECRET_USER)) {
    dataPrepHelper.createUser(user);
  }
  openPage(securityClearancePage).setClearance(CONFIDENTIAL_USER,CONFIDENTIAL_CLASSIFICATION_LEVEL_TEXT).clickOnConfirm(securityClearancePage).setClearance(SECRET_USER,SECRET_CLASSIFICATION_LEVEL_TEXT).clickOnConfirm(securityClearancePage).setClearance(TOP_SECRET_USER,TOP_SECRET_CLASSIFICATION_LEVEL_TEXT).clickOnConfirm(securityClearancePage);
  dataPrepHelper.createSite(SEARCH_TEST_SITE_NAME,SEARCH_TEST_SITE_ID);
  for (  String user : Arrays.asList(UNCLASSIFIED_USER,CONFIDENTIAL_USER,SECRET_USER,TOP_SECRET_USER)) {
    userService.inviteUserToSiteAndAccept(getAdminName(),getAdminPassword(),user,SEARCH_TEST_SITE_ID,"String_Node_Str");
  }
  openPage(documentLibrary,SEARCH_TEST_SITE_ID);
  for (  String documentName : Arrays.asList(UNCLASSIFIED_DOCUMENT,CONFIDENTIAL_DOCUMENT,SECRET_DOCUMENT,TOP_SECRET_DOCUMENT)) {
    contentService.createDocument(getAdminName(),getAdminPassword(),SEARCH_TEST_SITE_ID,DocumentType.TEXT_PLAIN,documentName,TEST_CONTENT);
  }
  openPage(documentLibrary,SEARCH_TEST_SITE_ID);
  classifyDocument(CONFIDENTIAL_DOCUMENT,CONFIDENTIAL_CLASSIFICATION_LEVEL_TEXT);
  classifyDocument(SECRET_DOCUMENT,SECRET_CLASSIFICATION_LEVEL_TEXT);
  classifyDocument(TOP_SECRET_DOCUMENT,TOP_SECRET_CLASSIFICATION_LEVEL_TEXT);
  new FluentWait<WebDriver>(Utils.getWebDriver()).withTimeout(10,TimeUnit.SECONDS).pollingEvery(1,TimeUnit.SECONDS).until(documentsAvailableForSearch);
}