LPS-44476 SearchResultUtil needs tests to document current behavior

https://issues.liferay.com/browse/LPS-44476

(Note: needs [LPS-43888](https://issues.liferay.com/browse/LPS-43888) to pass SourceFormatter.)