Program: 60578
Project: 60578
Buggy source:
@Test public void checkFailedLogins(){
  UserTO userTO=UserTestITCase.getUniqueSampleTO("String_Node_Str");
  MembershipTO membershipTO=new MembershipTO();
  membershipTO.setRoleId(7L);
  AttributeTO testAttributeTO=new AttributeTO();
  testAttributeTO.setSchema("String_Node_Str");
  testAttributeTO.addValue("String_Node_Str");
  membershipTO.addAttribute(testAttributeTO);
  userTO.addMembership(membershipTO);
  userTO=createUser(userTO);
  assertNotNull(userTO);
  UserService userService2=setupCredentials(userService,userTO.getUsername(),"String_Node_Str");
  UserTO readUserTO=userService2.read(userTO.getId());
  assertNotNull(readUserTO);
  assertNotNull(readUserTO.getFailedLogins());
  assertEquals(Integer.valueOf(0),readUserTO.getFailedLogins());
  UserService userService3=setupCredentials(userService,userTO.getUsername(),"String_Node_Str");
  Throwable t=null;
  try {
    userService3.read(userTO.getId());
    assertNotNull(readUserTO);
  }
 catch (  Exception e) {
    t=e;
  }
  assertNotNull(t);
  t=null;
  try {
    userService3.read(userTO.getId());
    assertNotNull(readUserTO);
  }
 catch (  Exception e) {
    t=e;
  }
  super.resetRestTemplate();
  readUserTO=userService.read(userTO.getId());
  assertNotNull(readUserTO);
  assertNotNull(readUserTO.getFailedLogins());
  assertEquals(Integer.valueOf(2),readUserTO.getFailedLogins());
  UserService userService4=setupCredentials(userService,userTO.getUsername(),"String_Node_Str");
  readUserTO=userService4.read(userTO.getId());
  assertNotNull(readUserTO);
  assertNotNull(readUserTO.getFailedLogins());
  assertEquals(Integer.valueOf(0),readUserTO.getFailedLogins());
}

Fixed version (ground truth):
@Test public void checkFailedLogins(){
  UserTO userTO=UserTestITCase.getUniqueSampleTO("String_Node_Str");
  MembershipTO membershipTO=new MembershipTO();
  membershipTO.setRoleId(7L);
  AttributeTO testAttributeTO=new AttributeTO();
  testAttributeTO.setSchema("String_Node_Str");
  testAttributeTO.addValue("String_Node_Str");
  membershipTO.addAttribute(testAttributeTO);
  userTO.addMembership(membershipTO);
  userTO=createUser(userTO);
  assertNotNull(userTO);
  UserService userService2=setupCredentials(userService,UserService.class,userTO.getUsername(),"String_Node_Str");
  UserTO readUserTO=userService2.read(userTO.getId());
  assertNotNull(readUserTO);
  assertNotNull(readUserTO.getFailedLogins());
  assertEquals(Integer.valueOf(0),readUserTO.getFailedLogins());
  UserService userService3=setupCredentials(userService,UserService.class,userTO.getUsername(),"String_Node_Str");
  Throwable t=null;
  try {
    userService3.read(userTO.getId());
    assertNotNull(readUserTO);
  }
 catch (  Exception e) {
    t=e;
  }
  assertNotNull(t);
  t=null;
  try {
    userService3.read(userTO.getId());
    assertNotNull(readUserTO);
  }
 catch (  Exception e) {
    t=e;
  }
  super.resetRestTemplate();
  readUserTO=userService.read(userTO.getId());
  assertNotNull(readUserTO);
  assertNotNull(readUserTO.getFailedLogins());
  assertEquals(Integer.valueOf(2),readUserTO.getFailedLogins());
  UserService userService4=setupCredentials(userService,UserService.class,userTO.getUsername(),"String_Node_Str");
  readUserTO=userService4.read(userTO.getId());
  assertNotNull(readUserTO);
  assertNotNull(readUserTO.getFailedLogins());
  assertEquals(Integer.valueOf(0),readUserTO.getFailedLogins());
}