AUI-1552 - Create unit test for capitalize

https://issues.liferay.com/browse/AUI-1552