public void test_getBoolean_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.getBoolean(0) == true);
} catch (Exception ex1) {
ex = ex1;
}
System.out.println("Error: " + ex);
assertTrue(ex instanceof JSONException);