Write test cases for ArrayUtil.