DefaultCounter implements Counter { @Override public Number increment() { return increment(1); } DefaultCounter(String key, Jedis jedis); @Override Number get(); @Override Number increment(); @Override Number increment(Number value); @Override Number decrement(); @Override Number decrement(Number value); @Override void delete(); @Override void expire(Duration ttl); @Override void persist(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void shouldIncrement() { assertEquals(1D, counter.increment()); assertEquals(10D, counter.increment(9)); }