public void testTruncateJobUpdates() {
String updateId = "u5";
IJobUpdate update = makeJobUpdate(JOB, updateId);
IJobUpdateEvent updateEvent = IJobUpdateEvent.build(new JobUpdateEvent(ROLLING_FORWARD, 123L));
IJobInstanceUpdateEvent instanceEvent = IJobInstanceUpdateEvent.build(
new JobInstanceUpdateEvent(0, 125L, INSTANCE_ROLLBACK_FAILED));
saveUpdate(update, Optional.of("lock"));
saveJobEvent(updateEvent, updateId);
saveJobInstanceEvent(instanceEvent, updateId);
assertEquals(