job = client.reserve(2 * timeoutSeconds);
fail("expected DEADLINE_SOON");
} catch (BeanstalkException be) {
String message = be.getMessage();
assertEquals("DEADLINE_SOON", message);
ok = client.touch(jobId);
assertTrue(ok);
} catch (Exception e) {
fail("caught exception: " + e.getMessage());
}