bucket().upsert(doc);
LegacyDocument stored = bucket().prepend(LegacyDocument.create(id, "foo"));
assertEquals(id, stored.id());
assertNull(stored.content());
assertTrue(stored.cas() != 0);
assertTrue(stored.expiry() == 0);
LegacyDocument found = bucket().get(id, LegacyDocument.class);
assertEquals("foobar", found.content());
}