@Test
 public void testResetTotal() {
   counter.countUpTotal(1000);
   assertEquals(1000, counter.getTotalCount());
   counter.resetTotal();
   assertEquals(0, counter.getTotalCount());
 }
  @Test
  public void testResetAllCounts() {
    counter.countUpTotal(100);
    counter.countUpHost("foo.example.org", 9001);
    counter.countUpStream(new ObjectId(), 5);

    assertEquals(100, counter.getTotalCount()); // Just to make sure.

    counter.resetAllCounts();

    assertEquals(0, counter.getTotalCount());
    assertEquals(0, counter.getHostCounts().size());
    assertEquals(0, counter.getStreamCounts().size());
  }
 @Test
 public void testGetTotalCount() {
   counter.countUpTotal(5);
   counter.incrementTotal();
   assertEquals(6, counter.getTotalCount());
 }
 @Test
 public void testCountUpTotal() {
   counter.countUpTotal(500);
   counter.countUpTotal(50);
   assertEquals(550, counter.getTotalCount());
 }
 @Test
 public void testIncrementTotal() {
   counter.countUpTotal(10);
   counter.incrementTotal();
   assertEquals(11, counter.getTotalCount());
 }