// Submit a job containing incorrect JSON.
String incorrectJson = "{";
jedis.sadd(JesqueUtils.createKey(config.getNamespace(), QUEUES), queue);
jedis.rpush(JesqueUtils.createKey(config.getNamespace(), QUEUE, queue), incorrectJson);
final Worker worker = new WorkerImpl(config, Arrays.asList(queue),
new MapBasedJobFactory(JesqueUtils.map(JesqueUtils.entry("SleepAction", SleepAction.class))));
final Thread workerThread = new Thread(worker);
workerThread.start();
Thread.sleep(1000);