Truth has evolved since we first started to write custom Truth subjects
and the recommended way to create chained subjects has changed.
According to [1], the recommended way is to use Subject#check as thus
the FailureStrategy is retained and (most importantly for us) a nice
failure message listing the complete chain of objects/methods is
generated.
Example for a reference in a failure message
before this change:
path
with this change:
robotCommentInfos.onlyElement().fixSuggestions().onlyElement()
.replacements().onlyElement().path()
[1] https://google.github.io/truth/extension
Change-Id: I9a3b7a877af48a7e5f7d334cf210aa4a5867abb5