@Test
public void isNull() {

    JSONObject o = new JSONObject();
    assertTrue(o.isNull("foo"));
    o.put("foo", (Object)null);
    assertTrue(o.isNull("foo"));
    o.put("foo", 42);
    assertFalse(o.isNull("foo"));
}