### Question:
ModelList extends ArrayList<E> { public boolean saveAll() { Transaction t = new Transaction(); try { t.setSuccessful(saveAll(t)); } finally { t.finish(); } return t.isSuccessful(); } ModelList();  ModelList(int capacity);  ModelList(Collection<? extends E> collection); static ModelList<E> from(CursorList<E> cursorList); boolean saveAll(); boolean saveAll(Transaction t); void saveAllAsync(); void saveAllAsync(final OnAllSavedCallback callback); void deleteAll(); void deleteAll(Transaction t); void deleteAllAsync(); void deleteAllAsync(final OnAllDeletedCallback callback);  }### Answer:
@Test public void saveAllModels() { TestModel m1 = new TestModel(); m1.title = "foo"; TestModel m2 = new TestModel(); m2.title = "bar"; ModelList<Model> modelList = new ModelList<Model>(); modelList.add(m1); modelList.add(m2); assertTrue(modelList.saveAll()); assertTrue(m1.exists()); assertTrue(m2.exists()); }