JsonLongDocument doc3 = bucket().counter("incr-key", 10, 0, 0);
assertEquals(20L, (long) doc3.content());
assertTrue(doc1.cas() != doc2.cas());
assertTrue(doc1.cas() != doc3.cas());
assertTrue(doc2.cas() != doc3.cas());
}
@Test
public void shouldDecrementFromCounter() throws Exception {
JsonLongDocument doc1 = bucket().counter("decr-key", -10, 100, 0);