@SuppressWarnings("static-access")
@Test
public void testPartitionerShouldNotBeCalledWhenOneReducerIsPresent()
    throws Exception {

  MapFileOutputFormat outputFormat = new MapFileOutputFormat();
  Reader reader = Mockito.mock(Reader.class);
  Reader[] readers = new Reader[]{reader};
  outputFormat.getEntry(readers, new MyPartitioner(), new Text(), new Text());
  assertTrue(!MyPartitioner.isGetPartitionCalled());
}