Prefer assertJ instead of jupiter assertions. The excavator didn't work because in here
MultiCheckAndSetException ex =
assertThatThrownBy(() -> keyValueService.multiCheckAndSet(request)).isInstanceOf(MultiCheckAndSetException.class);
assertThatThrownBy does not return the exception captured. Instead we should use catchThrowableOfType which already verifies the instance of automatically and return the exception.
Replica of the excavator https://github.com/palantir/atlasdb/pull/7058/files with some corrections.
Prefer assertJ instead of jupiter assertions. The excavator didn't work because in here
assertThatThrownBy does not return the exception captured. Instead we should use catchThrowableOfType which already verifies the instance of automatically and return the exception.