public void downloadConf() {
    try {
      requireJob();
    } catch (Exception e) {
      renderText(e.getMessage());
      return;
    }
    writeJobConf();
  }
@Test
  public void testDownloadConfiguration() {
    appController.downloadConf();
    String jobConfXml = appController.getData();
    assertTrue("Error downloading the job configuration file.",
        !jobConfXml.contains("Error"));
  }