assertThat(updated.simpleList, hasItem("!"));
}
@Test
public void testAddToSetSingle() throws Exception {
MockObject toSave = new MockObject("blah", "string", 10);
toSave.simpleList = Arrays.asList("hello");
coll.insert(toSave);
coll.updateById("blah", DBUpdate.addToSet("simpleList", "world"));
MockObject updated = coll.findOneById("blah");
assertThat(updated.simpleList, hasSize(2));
assertThat(updated.simpleList, hasItem("world"));
// Try again, this time should not be updated
coll.updateById("blah", DBUpdate.addToSet("simpleList", "world"));
updated = coll.findOneById("blah");