LPS-51675 Unit test

Created unit test: https://github.com/brianchandotcom/liferay-portal/pull/22388#issuecomment-63994155

Note: I'm having problems running unit tests that extend PowerMockito on JDK-1.7.67 (linux, 64bit) due to the known issue https://code.google.com/p/powermock/issues/detail?id=504, so I placed my equals to CookieUtilTest to run & test.

Regads,
-tibor