public void test_getString_typeMisMatchNull() {
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();
JSONObject jObject = factory.createJSONObject("{\"string\":null}");
assertTrue(jObject.getString("string") == "1");
} catch (Exception ex1) {
ex = ex1;
}
assertTrue(ex instanceof JSONException);