acc.setUsers(5.0f);
mgr.put(acc);
mgr.flush();
NoSqlEntityManager mgr = factory.createEntityManager();
Account acc1 = mgr.find(Account.class, acc.getId());
addAndSaveActivity1(mgr, acc1, "dean", "act1");
Assert.assertEquals(0, ((CursorProxy<Activity>)acc1.getActivitiesCursor()).getElementsToAdd().size());
addAndSaveActivity1(mgr, acc1, "xxxx", "act2");
Assert.assertEquals(0, ((CursorProxy<Activity>)acc1.getActivitiesCursor()).getElementsToAdd().size());
addAndSaveActivity1(mgr, acc1, "yyyy", "act3");
Assert.assertEquals(0, ((CursorProxy<Activity>)acc1.getActivitiesCursor()).getElementsToAdd().size());
NoSqlEntityManager mgr3 = factory.createEntityManager();
//Now, we should have no activities in our account list
Account theAccount = mgr3.find(Account.class, acc.getId());
CursorToMany<Activity> cursor = theAccount.getActivitiesCursor();
int counter = 0;
while(cursor.next()) {
Activity current = cursor.getCurrent();