public void test_for_issue_1() throws Exception {
        Exception error = null;
        try {
            HashMap origin = new HashMap();
            origin.put(new Object(), "value");
            JSONArray jsonArray = new JSONArray().fluentAdd(origin);
            jsonArray.getJSONObject(0);
            // now jsonArray is [{{}:"value"}]
            assertEquals(1, jsonArray.getJSONObject(0).size());
        } catch (JSONException ex) {
            error = ex;
        }
        assertNull(error);
    }
To prove casting from Map&lt;Object,Object&gt; won't cause exception

@throws Exception
src/test/java/com/alibaba/json/bvt/issue_2100/Issue2185.java