Job job = client.reserve(null);
assertNotNull(job);
// try to reserve another job
try {
job = client.reserve(2 * timeoutSeconds);
fail("expected DEADLINE_SOON");
} catch (BeanstalkException be) {
String message = be.getMessage();
assertEquals("DEADLINE_SOON", message);
ok = client.touch(jobId);