db.get("minimaster", new GetTestHelp() {
@Override
public void found(String key, int rev, byte[] data) {
assertEquals(1, rev);
MasterRecord record = MasterRecord.fromJson(data, MasterRecord.class);
assertEquals("master_record", record.getTypeName());
assertEquals("1", record.getDbVersion());
}
});
}