public Counter<?, ?> getExistingCounter(CounterName name) {
    return counters.get(name);
  }
@Test
  public void testMatchingByCounterName() {
    CounterName cn1 = CounterName.named("myCounter1");
    CounterName cn2 = CounterName.named("myCounter1");

    Counter<?, ?> c1 = counterSet.longSum(cn1);
    assertThat(c1, equalTo(counterSet.getExistingCounter(cn2)));
  }