assertNotNull(changes);
}
@Test
public void testDocChanges() throws Exception {
CouchEntity entity = new CouchEntity();
db.save(entity);
List<Change> changes = query.limit(1).descending(true).list();
assertEquals(1, changes.size());
assertEquals(entity.getId(), changes.get(0).getId());
assertEquals(entity.getRevision(), changes.get(0).getRev());
}