### Question:
SchedulerDAO { public int updateJob(SchedulerJobInfo info) { try { return store.updateJob(info.getId().getHandleIdString(), info.getJob(), info.getModifiedOn()); } catch (SQLException e) { log.error("Error while updating job for {}", info.getId().getHandleIdString(), e); return 0; } } SchedulerDAO(Configuration conf); int storeJob(SchedulerJobInfo jobInfo); SchedulerJobInfo getSchedulerJobInfo(SchedulerJobHandle id); XJob getJob(SchedulerJobHandle id); String getUser(SchedulerJobHandle id); SchedulerJobState getJobState(SchedulerJobHandle id); int updateJob(SchedulerJobInfo info); int updateJobStatus(SchedulerJobInfo info); int storeJobInstance(SchedulerJobInstanceInfo instanceInfo); int storeJobInstanceRun(SchedulerJobInstanceRun instanceRun); SchedulerJobInstanceInfo getSchedulerJobInstanceInfo(SchedulerJobInstanceHandle id); int updateJobInstanceRun(SchedulerJobInstanceRun instanceRun); List<SchedulerJobInstanceInfo> getJobInstances(SchedulerJobHandle id); List<SchedulerJobHandle> getJobs(String username, Long startTime, Long endTime,
    SchedulerJobState... jobStates); List<SchedulerJobHandle> getJob(String jobName); List<SchedulerJobInstanceRun> getInstanceRuns(SchedulerJobInstanceState... states);  }### Answer:
@Test(priority = 2) public void testUpdateJob() throws Exception { SchedulerJobInfo jobInfo = schedulerDAO.getSchedulerJobInfo(jobHandle); XJob newJob = getTestJob(); jobInfo.setJob(newJob); schedulerDAO.updateJob(jobInfo); XJob storedJob = schedulerDAO.getJob(jobInfo.getId()); Assert.assertEquals(storedJob, newJob); jobInfo.setJobState(jobInfo.getJobState().nextTransition(SchedulerJobEvent.ON_SCHEDULE)); schedulerDAO.updateJobStatus(jobInfo); Assert.assertEquals(schedulerDAO.getJobState(jobInfo.getId()), SchedulerJobState.SCHEDULED); }