@Test
public void test() {
store.load("users/larry", new Handler<Document>() {
@Override
public void handle(Document doc) {
Model mod = doc.getModel();
CollaborativeMap root = mod.getRoot();
VertxAssert.assertEquals("Larry Tin", root.<CollaborativeString> get("name").getText());
VertxAssert.testComplete();
}
}, new Handler<Model>() {
@Override
public void handle(Model mod) {
CollaborativeString str = mod.createString("Larry Tin");
mod.getRoot().set("name", str);
}
}, null);
}