Program: 97862
Project: 97862
Buggy source:
@Test public void testEmbeddedSimple(){
  Email sub=new Email();
  sub.setId("String_Node_Str");
  sub.setName("String_Node_Str");
  sub.getIds().add("String_Node_Str");
  sub.getIds().add("String_Node_Str");
  sub.getInts().add(5);
  sub.getInts().add(8);
  sub.getSomeSet().add(10l);
  sub.getSomeSet().add(20l);
  mgr.put(sub);
  mgr.flush();
  NoSqlEntityManager mgr2=factory.createEntityManager();
  Email email=mgr2.find(Email.class,sub.getId());
  NoSqlEntityManager mgr3=factory.createEntityManager();
  Email email2=mgr3.find(Email.class,sub.getId());
  List<String> ids=email.getIds();
  Assert.assertEquals("String_Node_Str",ids.get(0));
  List<Integer> nums=email.getInts();
  Assert.assertEquals(new Integer(5),nums.get(0));
  email.getInts().remove(0);
  email.getIds().remove("String_Node_Str");
  email.getSomeSet().remove(20l);
  mgr2.put(email);
  mgr2.flush();
  email2.getInts().add(12);
  email2.getIds().add("String_Node_Str");
  email2.getSomeSet().add(30l);
  mgr3.put(email2);
  mgr3.flush();
  NoSqlEntityManager mgr4=factory.createEntityManager();
  Email emailF=mgr4.find(Email.class,sub.getId());
  Assert.assertEquals(2,emailF.getInts().size());
  Assert.assertEquals(2,emailF.getIds().size());
  Assert.assertEquals(2,emailF.getSomeSet().size());
  Assert.assertEquals(new Integer(8),emailF.getInts().get(0));
  Assert.assertEquals(new Integer(12),emailF.getInts().get(1));
  Assert.assertEquals("String_Node_Str",emailF.getIds().get(0));
  Assert.assertEquals("String_Node_Str",emailF.getIds().get(1));
  Assert.assertEquals(10l,emailF.getSomeSet().toArray()[0]);
  Assert.assertEquals(30l,emailF.getSomeSet().toArray()[1]);
}

Fixed version (ground truth):
@Test public void testEmbeddedSimple(){
  Email sub=new Email();
  sub.setId("String_Node_Str");
  sub.setName("String_Node_Str");
  sub.getIds().add("String_Node_Str");
  sub.getIds().add("String_Node_Str");
  sub.getInts().add(5);
  sub.getInts().add(8);
  sub.getSomeSet().add(10L);
  sub.getSomeSet().add(20L);
  mgr.put(sub);
  mgr.flush();
  NoSqlEntityManager mgr2=factory.createEntityManager();
  Email email=mgr2.find(Email.class,sub.getId());
  NoSqlEntityManager mgr3=factory.createEntityManager();
  Email email2=mgr3.find(Email.class,sub.getId());
  List<String> ids=email.getIds();
  Assert.assertEquals("String_Node_Str",ids.get(0));
  List<Integer> nums=email.getInts();
  Assert.assertEquals(new Integer(5),nums.get(0));
  email.getInts().remove(0);
  email.getIds().remove("String_Node_Str");
  email.getSomeSet().remove(20L);
  mgr2.put(email);
  mgr2.flush();
  email2.getInts().add(12);
  email2.getIds().add("String_Node_Str");
  email2.getSomeSet().add(30L);
  mgr3.put(email2);
  mgr3.flush();
  NoSqlEntityManager mgr4=factory.createEntityManager();
  Email emailF=mgr4.find(Email.class,sub.getId());
  Assert.assertEquals(2,emailF.getInts().size());
  Assert.assertEquals(2,emailF.getIds().size());
  Assert.assertEquals(2,emailF.getSomeSet().size());
  Assert.assertEquals(new Integer(8),emailF.getInts().get(0));
  Assert.assertEquals(new Integer(12),emailF.getInts().get(1));
  Assert.assertEquals("String_Node_Str",emailF.getIds().get(0));
  Assert.assertEquals("String_Node_Str",emailF.getIds().get(1));
  Assert.assertEquals(10L,emailF.getSomeSet().toArray()[0]);
  Assert.assertEquals(30L,emailF.getSomeSet().toArray()[1]);
}