final Jedis jedis = TestUtils.createJedis(config);
Assert.assertEquals("In-flight list should have length one when running the job",
jedis.llen(inFlightKey(worker, queue)), (Long)1L);
Assert.assertEquals("Object on the in-flight list should be the first job",
ObjectMapperFactory.get().writeValueAsString(sleepJob),
jedis.lindex(inFlightKey(worker, queue), 0));
TestUtils.stopWorker(worker, workerThread, false);
Assert.assertTrue("The job should not be requeued after succesful processing",
jedis.llen(JesqueUtils.createKey(config.getNamespace(), QUEUE, queue)) == 0L);