@Test
public void serializeJobException() throws Exception {
final Job job = new Job("TestAction", new Object[] { 1, 2.3, true, "test", Arrays.asList("inner", 4.5) });
final Exception e = new Exception("Whoopie!");
e.fillInStackTrace();
final JobFailure jobFailure = new JobFailure();
assertSerializeRoundTrip(jobFailure);
jobFailure.setPayload(job);
jobFailure.setFailedAt(new Date());
jobFailure.setThrowable(e);
jobFailure.setThrowableString(e.getClass().getName());
jobFailure.setError(e.getMessage());
jobFailure.setBacktrace(JesqueUtils.createBacktrace(e));
jobFailure.setWorker("foo");
assertSerializeRoundTrip(jobFailure);
}