@Test
public void testSourceCounterEventFail() throws Exception {

  init("true");
  errorCounterCommon(new RuntimeException("dummy"));
  for (int i = 0; i < 10 && source.getSourceCounter().getEventReadFail() == 0; i++) {
    Thread.sleep(100);
  }
  assertEquals(1, source.getSourceCounter().getEventReadFail());
}