### Question:
ModelDiff { List<UpdateScript> getUpdateScripts() { return unmodifiableList(updateScripts); } @JsonCreator  ModelDiff(@JsonProperty("updateScripts") List<UpdateScript> updateScripts);   ModelDiff(UpdateScript... updateScripts); List<String> getUpdateMaql(); @Override String toString();  }### Answer:
@Test public void testDeserialization() throws Exception { final ModelDiff diff = readObjectFromResource("/model/modelDiff.json", ModelDiff.class); assertThat(diff, is(notNullValue())); assertThat(diff.getUpdateScripts(), hasSize(2)); assertThat(diff.getUpdateScripts().get(0).isPreserveData(), is(true)); assertThat(diff.getUpdateScripts().get(0).isCascadeDrops(), is(false)); assertThat(diff.getUpdateScripts().get(0).getMaqlChunks(), hasSize(1)); assertThat(diff.getUpdateScripts().get(0).getMaqlChunks(), contains( "CREATE FOLDER {ffld.employee} VISUAL(TITLE \"Employee\") TYPE FACT;\nCREATE FACT {fact.employee.age} VISUAL(TITLE \"Employee Age\", FOLDER {ffld.employee}) AS {f_employee.f_age};\nALTER DATASET {dataset.employee} ADD {fact.employee.age};\nSYNCHRONIZE {dataset.employee} PRESERVE DATA;")); }