@Test(expected=IllegalStateException.class)
public void testEvaluateOutputDir_OutputDirSetAlongWithDirectWriteMode() {

    opts.outputDir = new Path("/some/path");
    opts.reducers = 0;
    opts.evaluateOutputDir();
}