public void test_sortedKeys() {
HashMap map = new HashMap();
JSONObject jObject = null;
try {
System.setProperty("org.apache.wink.common.model.json.factory.impl", "org.apache.wink.json4j.compat.impl.ApacheJSONFactory");
JSONFactory factory = JSONFactory.newInstance();
jObject = factory.createJSONObject("{\"foo\": \"bar\", \"number\": 1, \"bool\":null}");
} catch (Exception ex) {
assertTrue(false);
}
Iterator keys = jObject.sortedKeys();
String[] sKeys = new String[] {"bool", "foo", "number"};