@Test
public void testReserveId() throws Exception {

  setSession();
  final JobManager jobManager = new JobManager( false, 1000, 1000 );
  final Response response = jobManager.reserveId();
  assertEquals( 200, response.getStatus() );
  final ObjectMapper mapper = new ObjectMapper();
  final JsonNode jsonNode = mapper.readTree( (String) response.getEntity() );
  assertNotNull( jsonNode );
  assertNotNull( jsonNode.get( "reservedId" ).asText() );
}