@Test
public void testGetJSONObject() throws Exception {

    JSONObject obj = JSONHelper.createJSONObject("key", "value");
    JSONObject innerObj = JSONHelper.createJSONObject("innerkey", "innervalue");
    assertTrue("Inserting inner object should be successful", JSONHelper.putValue(obj, "inner", innerObj));
    assertEquals("JSONObject 'inner' should return innerObj", JSONHelper.getJSONObject(obj, "inner"), innerObj);
}