@Test
public void getAggregatedCounters() {
final Counter.Key key1 = new Counter.Key(new Role("cassandra", Unit.MEGA), "k1");
final Counter.Key key2 = new Counter.Key(new Role("cassandra", Unit.MEGA), "k2");
new CassandraCollectorCounterDataStore().getOrCreateCounter(key1, "node1").update(new M2AwareStatisticalSummary(1, 1, 1, 1, 1, 1, 1), 1);
new CassandraCollectorCounterDataStore().getOrCreateCounter(key1, "node2").update(new M2AwareStatisticalSummary(3, 4, 4, 4, 4, 4, 4), 2);
new CassandraCollectorCounterDataStore().getOrCreateCounter(key2, "node1").update(new M2AwareStatisticalSummary(1, 1, 1, 1, 1, 1, 1), 1);
new CassandraCollectorCounterDataStore().getOrCreateCounter(key2, "node2").update(new M2AwareStatisticalSummary(3, 4, 4, 4, 4, 4, 4), 2);
final Collection<Counter> aggregations = new CassandraCollectorCounterDataStore().getCounters();
assertEquals(2, aggregations.size());
for (final Counter aggregation : aggregations) {