@Test
public void keySet() {

    JSONObject obj = new JSONObject();
    obj.put("one", "a");
    obj.put("two", "b");
    Set<String> exp = newHashSet("one", "two");
    assertEquals(exp, obj.keySet());
    assertEquals(exp, newHashSet(obj.keys()));
}