@Test
public void skip() throws Exception {

  Counter skippedInstances = EasyMock.createMock(Counter.class);
  EasyMock.expect(ctx.getCounter(IndexInstancesMapper.Counter.SKIPPED_INSTANCES)).andReturn(skippedInstances);
  skippedInstances.increment(1);
  EasyMock.replay(ctx, skippedInstances);
  IndexInstancesMapper indexInstances = new IndexInstancesMapper();
  setField(indexInstances, "labelIndex", labelIndex);
  indexInstances.map(new Text("/fish/"), instance, ctx);
  EasyMock.verify(ctx, skippedInstances);
}