@Test
public void testCreateOuputDirsIfRequested() throws Exception {

   PGETaskInstance pgeTask = createTestInstance();
   File outputDir1 = createTmpDir();
   FileUtils.forceDelete(outputDir1);
   File outputDir2 = createTmpDir();
   FileUtils.forceDelete(outputDir2);
   File outputDir3 = new File("/some/file/path");
   assertFalse(outputDir1.exists());
   assertFalse(outputDir2.exists());
   assertFalse(outputDir3.exists());
   pgeTask.pgeConfig.addOuputDirAndExpressions(new OutputDir(outputDir1
         .getAbsolutePath(), true));
   pgeTask.pgeConfig.addOuputDirAndExpressions(new OutputDir(outputDir2
         .getAbsolutePath(), true));
   pgeTask.pgeConfig.addOuputDirAndExpressions(new OutputDir(outputDir3
         .getAbsolutePath(), false));
   pgeTask.createOuputDirsIfRequested();
   assertTrue(outputDir1.exists());
   assertTrue(outputDir2.exists());
   assertFalse(outputDir3.exists());
}