@Test
public void index() throws Exception {

  ctx.write(new IntWritable(0), instance);
  EasyMock.replay(ctx);
  IndexInstancesMapper indexInstances = new IndexInstancesMapper();
  setField(indexInstances, "labelIndex", labelIndex);
  indexInstances.map(new Text("/bird/"), instance, ctx);
  EasyMock.verify(ctx);
}