@Test
public void shouldHandleComplexChanges() throws JSONException {

    BaseModel originalModel = new BaseModel("{\"change1\":\"Foo Bar\",\"deletion\":\"old stuff\",\"change2\":\"Foo Bar\",\"unique_identifier\":\"1\"}");
    BaseModel changedModel = new BaseModel("{\"change1\":\"Foo Bar1\",\"addition\":\"new stuff\",\"change2\":\"Foo Bar2\",\"unique_identifier\":\"1\"}");
    History history = History.buildHistoryBetween(rapidFtrApplication, originalModel, changedModel);
    String  expectedJSON = "{\"change1\":{\"from\":\"Foo Bar\",\"to\":\"Foo Bar1\"}," +
            "\"change2\":{\"from\":\"Foo Bar\",\"to\":\"Foo Bar2\"}," +
            "\"deletion\":{\"from\":\"old stuff\",\"to\":\"\"}," +
            "\"addition\":{\"from\":\"\",\"to\":\"new stuff\"}" +
            "}";
    JSONAssert.assertEquals(expectedJSON, history.getString(History.CHANGES), true);
}