@Test
public void shouldRemoveFieldIfNull() throws JSONException {

    BaseModel child = new BaseModel();
    child.put("name", "test");
    assertEquals(child.get("name"), "test");
    Object value = null;
    child.put("name", value);
    assertNull(child.opt("name"));
}