*/
public void test_getLong_typeMisMatch() {
Exception ex = null;
try {
System.setProperty("org.apache.wink.common.model.json.factory.impl", "org.apache.wink.json4j.compat.impl.ApacheJSONFactory");
JSONFactory factory = JSONFactory.newInstance();
JSONArray jArray = factory.createJSONArray("[\"1\"]");
assertTrue(jArray.getLong(0) == (long)1);
} catch (Exception ex1) {
ex = ex1;
}
assertTrue(ex instanceof JSONException);