LPS-52319 Create tests for ArrayUtil.remove methods

Hey @brianchandotcom, 

This are the test you requested in https://github.com/brianchandotcom/liferay-portal/pull/22884