final Jedis jedis = TestUtils.createJedis(config);
Assert.assertTrue("Job should be requeued", jedis.llen(JesqueUtils.createKey(config.getNamespace(), QUEUE, queue)) == 1L);
Assert.assertEquals("Incorrect job was requeued", ObjectMapperFactory.get().writeValueAsString(sleepJob),
jedis.lindex(JesqueUtils.createKey(config.getNamespace(), QUEUE, queue), 0));
Assert.assertTrue("In-flight list should be empty when finishing a job", jedis.llen(inFlightKey(worker, queue)) == 0L);
}
@Test
public void testJSONException() throws InterruptedException, JsonProcessingException {
final String queue = "baz";