@Test
public void selectWornout_returns_task_pending_with_a_non_null_startedAt() {
insertPending("p1");
makeInProgress("w1", alwaysIncreasingSystem2.now(), insertPending("i1"));
CeQueueDto resetDto = makeInProgress("w1", alwaysIncreasingSystem2.now(), insertPending("i2"));
makeInProgress("w1", alwaysIncreasingSystem2.now(), insertPending("i3"));
reset(db.getSession(), alwaysIncreasingSystem2.now(), resetDto);
List<CeQueueDto> ceQueueDtos = underTest.selectWornout(db.getSession());
assertThat(ceQueueDtos)
.extracting(CeQueueDto::getStatus, CeQueueDto::getUuid)
.containsOnly(tuple(PENDING, resetDto.getUuid()));
}