DefaultSortedSet implements SortedSet { @Override public void add(String member, Number value) throws NullPointerException { Objects.requireNonNull(member, "member is required"); Objects.requireNonNull(value, "value is required"); jedis.zadd(key, value.doubleValue(), member); } DefaultSortedSet(Jedis jedis, String keyspace); @Override void add(String member, Number value); @Override void add(Ranking ranking); @Override Number increment(String member, Number value); @Override Number decrement(String member, Number value); @Override void remove(String member); @Override int size(); @Override boolean isEmpty(); @Override void delete(); @Override void expire(Duration ttl); @Override void persist(); @Override List<Ranking> range(long start, long end); @Override List<Ranking> revRange(long start, long end); @Override List<Ranking> getRanking(); @Override List<Ranking> getRevRanking(); @Override void clear(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void shouldAdd() { sortedSet.add(BRAZIL, 10); }