### Question:
JedisClusterClient implements JedisClient { @Override public Integer count(String sessionsKey) { return jedisCluster.scard(sessionsKey).intValue(); } JedisClusterClient(JedisCluster jedisCluster); @Override Set<String> getSessions(String sessionsKey); @Override void del(String sessionsKey, String key); @Override Integer count(String sessionsKey); @Override byte[] get(String key); @Override void set(String key, String sessionsKey, byte[] session, int timeout); @Override void clean(String sessionsKey); @Override void close();  }### Answer:
@Test public void count() { when(this.jedisCluster.scard(SESSIONS_KEY)).thenReturn(10L); Integer result = this.jedisPoolTemplate.count(SESSIONS_KEY); assertEquals(10, result.intValue()); verify(this.jedisCluster, times(1)).scard(SESSIONS_KEY); }