public void testCounter() throws Exception {
Counter counter = memcachedClient.getCounter("a");
Assert.assertEquals(0, counter.get());
Assert.assertEquals(0, counter.get());
Assert.assertEquals(1, counter.incrementAndGet());
Assert.assertEquals(2, counter.incrementAndGet());
Assert.assertEquals(3, counter.incrementAndGet());
Assert.assertEquals(2, counter.decrementAndGet());
Assert.assertEquals(1, counter.decrementAndGet());