assertEquals(LifecycleStateEnum.instantiated, job.getState());
assertEquals(LifecycleStateEnum.undefined, job.getState());
    public void testTerminateRetains() throws Exception {        String id=job.getId();        assertEquals(LifecycleStateEnum.instantiated, job.getState());        repository.terminate(job,"");        assertEquals(LifecycleStateEnum.terminated,job.getState());        //check it is still there        assertTrue(repository.lookup(id)!=null);        //try again        repository.terminate(job, "");        //and terminate        repository.destroy(job);        assertTrue(repository.lookup(id) == null);    }