@Test
public void testReset() throws IOException, InterruptedException, KeeperException {

  ZooKeeperCounter seq = new ZooKeeperCounter(svc, "/seq-generator-reset-test");
  
  for (long i=0; i < 1024; ++i) {
    seq.resetTo(i);
    assertEquals(i, seq.incrementAndGet());
  }
  seq.shutdown();
}