KafkaSourceCounter extends SourceCounter implements  KafkaSourceCounterMBean { public long addToKafkaCommitTimer(long delta) { return addAndGet(TIMER_KAFKA_COMMIT,delta); } KafkaSourceCounter(String name); long addToKafkaEventGetTimer(long delta); long addToKafkaCommitTimer(long delta); long incrementKafkaEmptyCount(); long getKafkaCommitTimer(); long getKafkaEventGetTimer(); long getKafkaEmptyCount();  }
@Test public void testAddToKafkaCommitTimer() throws Exception { Assert.assertEquals(1L, counter.addToKafkaCommitTimer(1L)); }