LPS-46460 Unit test the generic, registry-driven CommentManager impl

Hi @brianchandotcom!

This is https://github.com/brianchandotcom/liferay-portal/pull/19132#issuecomment-45830174 rebased and fixed.

Thanks!