@Test public void testJobConfig() {

    JobManager jm = new JobManager();
    MorphiaService ms = new MorphiaService();
    LGJobDAOImpl dao = new LGJobDAOImpl(LGJob.class, ms.getDatastore());
    String jobId = UUID.randomUUID().toString();
    ArrayList<String> alist = new ArrayList();
    alist.add("HelloWorld");
    alist.add("PlusBang");
    alist.add("HelloWorldPython");
    alist.add("LongRunningTestAdapter");
    alist.add("LongRunningPython");
    JSONObject jobConfig = new JSONObject();
    jobConfig.put("job_id",jobId);
    jobConfig.put("ttl",300); // 5 mins
    jobConfig.put("depth",3);
    jobConfig.put("description","test job");
    LGPayload lgp = new LGPayload(jobConfig);
    // Create test job
    LGJob testJob = new LGJob(jobId, alist, jobConfig);
    dao.save(testJob);
    // Query and test that job_config survives
    LGJob lookup = dao.getByJobId(jobId);
    assertEquals(lookup.getDepth(), 3);
    assertEquals(lookup.getDescription(), "test job");
    assertEquals(lookup.getTTL(),300);
    jm.deleteJob(lookup);
}