@Test
public void shouldRemoveFromJSONArray() throws JSONException {

    BaseModel child = new BaseModel("{ 'test1' : ['value1', 'value2', 'value3' ]}");
    child.removeFromJSONArray("test1", "value1");
    assertThat(child.getJSONArray("test1").toString(), is(new JSONArray(Arrays.asList("value2", "value3")).toString()));
}