@Test
void testCheckModifiedHasNotChanged() {

  Instant expectedModifiedTimestamp = Instant.now();
  WorkbasketImpl oldWb = createTestWorkbasket(null, "Key-1");
  WorkbasketImpl workbasketImplToUpdate = createTestWorkbasket(null, "Key-2");
  oldWb.setModified(expectedModifiedTimestamp);
  workbasketImplToUpdate.setModified(expectedModifiedTimestamp);
  ThrowingCallable call =
      () -> workbasketServiceSpy.checkModifiedHasNotChanged(oldWb, workbasketImplToUpdate);
  assertThatCode(call).doesNotThrowAnyException();
  workbasketImplToUpdate.setModified(expectedModifiedTimestamp.minus(1, ChronoUnit.HOURS));
  call = () -> workbasketServiceSpy.checkModifiedHasNotChanged(oldWb, workbasketImplToUpdate);
  assertThatThrownBy(call).isInstanceOf(ConcurrencyException.class);
}