Program: 38764
Project: 38764
Buggy source:
public void testFindSet() throws Exception {
  IUserPersistence users=dbs.getDatabase1().users();
  long t0=System.currentTimeMillis();
  long t1=t0 + 10;
  long t2=t0 + 20;
  byte[] someBinary=new byte[]{5,4,3,2,1};
  User bryand=users.create("String_Node_Str",t0,5,t1,t2,"String_Node_Str",someBinary,1.2d,true);
  User notBryand=users.create("String_Node_Str",t0,3,t1,t2,"String_Node_Str",someBinary,1.2d,true);
  users.create("String_Node_Str",t0,0,t1,t2,"String_Node_Str",someBinary,1.2d,true);
  Set<Integer> keysToSearch=new HashSet<Integer>();
  keysToSearch.add(bryand.getId());
  keysToSearch.add(notBryand.getId());
  Set<User> foundValues=users.find(keysToSearch);
  assertEquals(2,foundValues.size());
  Iterator<User> iter=foundValues.iterator();
  User bryand_again=null;
  User notBryand_again=null;
  while (iter.hasNext()) {
    User curUser=iter.next();
    if (curUser.getId() == bryand.getId()) {
      bryand_again=curUser;
    }
 else     if (curUser.getId() == notBryand.getId()) {
      notBryand_again=curUser;
    }
 else {
      fail("String_Node_Str" + curUser.getId());
    }
  }
  assertNotNull(bryand_again);
  assertNotNull(notBryand_again);
  assertEquals(bryand.getId(),bryand_again.getId());
  assertEquals("String_Node_Str",bryand_again.getHandle());
  assertEquals(Long.valueOf(t0),bryand_again.getCreatedAtMillis());
  assertEquals(5,bryand_again.getNumPosts());
  assertEquals("String_Node_Str",bryand_again.getBio());
  assertEquals(ByteBuffer.wrap(someBinary),ByteBuffer.wrap(bryand_again.getSomeBinary()));
  assertEquals(1.2,bryand_again.getSomeFloat());
  assertTrue(bryand_again.isSomeBoolean());
  assertEquals(notBryand.getId(),notBryand_again.getId());
  assertEquals("String_Node_Str",notBryand_again.getHandle());
  assertEquals(Long.valueOf(t0),notBryand_again.getCreatedAtMillis());
  assertEquals(3,notBryand_again.getNumPosts());
  assertEquals("String_Node_Str",notBryand_again.getBio());
  assertEquals(ByteBuffer.wrap(someBinary),ByteBuffer.wrap(notBryand_again.getSomeBinary()));
  assertEquals(1.2,notBryand_again.getSomeFloat());
  assertTrue(notBryand_again.isSomeBoolean());
}

Fixed version (ground truth):
public void testFindSet() throws Exception {
  IUserPersistence users=dbs.getDatabase1().users();
  long t0=System.currentTimeMillis();
  long t1=t0 + 10;
  long t2=t0 + 20;
  byte[] someBinary=new byte[]{5,4,3,2,1};
  User bryand=users.create("String_Node_Str",t0,5,t1,t2,"String_Node_Str",someBinary,1.2d,true);
  User notBryand=users.create("String_Node_Str",t0,3,t1,t2,"String_Node_Str",someBinary,1.2d,true);
  users.create("String_Node_Str",t0,0,t1,t2,"String_Node_Str",someBinary,1.2d,true);
  users.clearCacheById(bryand.getId());
  users.clearCacheById(notBryand.getId());
  Set<Integer> keysToSearch=new HashSet<Integer>();
  keysToSearch.add(bryand.getId());
  keysToSearch.add(notBryand.getId());
  Set<User> foundValues=users.find(keysToSearch);
  assertEquals(2,foundValues.size());
  Iterator<User> iter=foundValues.iterator();
  User bryand_again=null;
  User notBryand_again=null;
  while (iter.hasNext()) {
    User curUser=iter.next();
    if (curUser.getId() == bryand.getId()) {
      bryand_again=curUser;
    }
 else     if (curUser.getId() == notBryand.getId()) {
      notBryand_again=curUser;
    }
 else {
      fail("String_Node_Str" + curUser.getId());
    }
  }
  assertNotNull(bryand_again);
  assertNotNull(notBryand_again);
  assertEquals(bryand.getId(),bryand_again.getId());
  assertEquals("String_Node_Str",bryand_again.getHandle());
  assertEquals(Long.valueOf(t0),bryand_again.getCreatedAtMillis());
  assertEquals(5,bryand_again.getNumPosts());
  assertEquals("String_Node_Str",bryand_again.getBio());
  assertEquals(ByteBuffer.wrap(someBinary),ByteBuffer.wrap(bryand_again.getSomeBinary()));
  assertEquals(1.2,bryand_again.getSomeFloat());
  assertTrue(bryand_again.isSomeBoolean());
  assertEquals(notBryand.getId(),notBryand_again.getId());
  assertEquals("String_Node_Str",notBryand_again.getHandle());
  assertEquals(Long.valueOf(t0),notBryand_again.getCreatedAtMillis());
  assertEquals(3,notBryand_again.getNumPosts());
  assertEquals("String_Node_Str",notBryand_again.getBio());
  assertEquals(ByteBuffer.wrap(someBinary),ByteBuffer.wrap(notBryand_again.getSomeBinary()));
  assertEquals(1.2,notBryand_again.getSomeFloat());
  assertTrue(notBryand_again.isSomeBoolean());
}