@Test public void countForClientId() { assertThat(service.getCountForClientId(1L), is(2)); assertThat(service.getCountForClientId(2L), is(1)); assertThat(service.getCountForClientId(3L), is(1)); assertThat(service.getCountForClientId(4L), is(0)); }
@Override public Integer getCountForClientId(Long id) { Map<Long, Integer> counts = getByClientId(); return counts.get(id); }
DefaultStatsService implements StatsService { @Override public Integer getCountForClientId(Long id) { Map<Long, Integer> counts = getByClientId(); return counts.get(id); } }
DefaultStatsService implements StatsService { @Override public Integer getCountForClientId(Long id) { Map<Long, Integer> counts = getByClientId(); return counts.get(id); }  }
DefaultStatsService implements StatsService { @Override public Integer getCountForClientId(Long id) { Map<Long, Integer> counts = getByClientId(); return counts.get(id); }  @Override Map<String, Integer> getSummaryStats(); @Override Map<Long, Integer> getByClientId(); @Override Integer getCountForClientId(Long id); @Override void resetCache(); }
DefaultStatsService implements StatsService { @Override public Integer getCountForClientId(Long id) { Map<Long, Integer> counts = getByClientId(); return counts.get(id); }  @Override Map<String, Integer> getSummaryStats(); @Override Map<Long, Integer> getByClientId(); @Override Integer getCountForClientId(Long id); @Override void resetCache();  }