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

    return false;
  }
@Test
  public void testEquals() {
    HistogramCell cell = new HistogramCell(KV.of(MetricName.named("hello", "world"), bucketType));
    HistogramCell equalCell =
        new HistogramCell(KV.of(MetricName.named("hello", "world"), bucketType));
    Assert.assertEquals(equalCell, cell);
    Assert.assertEquals(equalCell.hashCode(), cell.hashCode());
  }