ObjectComparator { public static boolean deepEquals(Object obj1, Object obj2) { if (obj1 instanceof JSONArray) { if (!(obj2 instanceof JSONArray)) { return false; } return deepEqualArrays((JSONArray) obj1, (JSONArray) obj2); } else if (obj1 instanceof JSONObject) { if (!(obj2 instanceof JSONObject)) { return false; } return deepEqualObjects((JSONObject) obj1, (JSONObject) obj2); } return Objects.equals(obj1, obj2); } private  ObjectComparator(); static boolean deepEquals(Object obj1, Object obj2);  }
@Test @Parameters(method = "failingCases") @TestCaseName("{0} (false)") public void array_Null_failure(String testcaseName, Object arg1, Object arg2) { assertFalse(ObjectComparator.deepEquals(arg1, arg2)); assertFalse(ObjectComparator.deepEquals(arg2, arg1)); }