@Test
public void getNames() {

    assertArrayEquals(null, JSONObject.getNames(new JSONObject()));
    assertArrayEquals(new String[]{"a","b"}, JSONObject.getNames(new JSONObject(of("a",1,"b",2))));
}