@Test
public void testCreateDynamicConfigFile() throws Exception {

   File tmpDir = createTmpDir();
   FileUtils.forceDelete(tmpDir);
   assertFalse(tmpDir.exists());
   PGETaskInstance pgeTask = createTestInstance();
   File dynamicConfigFile = new File(tmpDir, "DynamicConfig.xml");
   assertFalse(dynamicConfigFile.exists());
   pgeTask.createDynamicConfigFile(new DynamicConfigFile(dynamicConfigFile.getAbsolutePath(),
         MockDynamicConfigFileWriter.class.getCanonicalName(),
         new Object[] {}));
   assertTrue(dynamicConfigFile.exists());
}