RedisService { public long getCurrentVersion() { Object obj = this.redisTemplate.opsForValue().get(Constant.TRUNK_VERSIONS); return null == obj ? 0L : Long.valueOf(obj.toString()); }  long getCurrentVersion(); long incrementVersion(); void report(Set<String> urls, Set<String> trunks, long version); Set<String> getTrunks(); void deleteTrunks();  }
@Test public void testCurrentVersion() { System.out.println(this.redisService.getCurrentVersion()); }