LPS-30322 Unit test, part 2

See my comment at https://github.com/brianchandotcom/liferay-portal/pull/10774#issuecomment-17457935