assertEquals("replaced", response.content().getString("hello"));
}
@Test
public void shouldIncrementFromCounter() throws Exception {
JsonLongDocument doc1 = bucket().counter("incr-key", 10, 0, 0);
assertEquals(0L, (long) doc1.content());
JsonLongDocument doc2 = bucket().counter("incr-key", 10, 0, 0);
assertEquals(10L, (long) doc2.content());
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());
}