@Override
  public boolean equals(@Nullable Object object) {
    if (object instanceof CounterCell) {
      CounterCell counterCell = (CounterCell) object;
      return Objects.equals(dirty, counterCell.dirty)
          && value.get() == counterCell.value.get()
          && Objects.equals(name, counterCell.name);
    }

    return false;
  }
@Test
  public void testEquals() {
    CounterCell counterCell = new CounterCell(MetricName.named("namespace", "name"));
    CounterCell equal = new CounterCell(MetricName.named("namespace", "name"));
    Assert.assertEquals(counterCell, equal);
    Assert.assertEquals(counterCell.hashCode(), equal.hashCode());
  }