public void testCountersEnabled() throws IOException {
PipelineResult result = run(new MRPipeline(MultipleOutputIT.class, tmpDir.getDefaultConfiguration()),
WritableTypeFamily.getInstance());
assertEquals(1, result.getStageResults().size());
StageResult stageResult = result.getStageResults().get(0);
String counterGroup = CrunchOutputs.class.getName();
assertEquals(3, stageResult.getCounterNames().get(counterGroup).size());
assertEquals(1l, stageResult.getCounterValue(counterGroup, "out1"));
assertEquals(1l, stageResult.getCounterValue(counterGroup, "out2"));
assertEquals(0l, stageResult.getCounterValue(counterGroup, "out3"));
}