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