### Question:
Model extends BaseObject { public static long count() { throw new UnsupportedOperationException(NIE); } Model(); void updateAttributes(Map<String, Object> attributes); abstract Serializable getId(); static T findById(Serializable id); static long count(); static long count(Filter filter); static List<T> all(); static void deleteAll(); static void deleteAll(Filter filter); static boolean exists(Serializable id); static Filter filter(); static List<T> where(Object... paramValues); static List<T> where(Filter filter); static T one(Object... paramValues); static T first(Object... paramValues); static EntityTransaction beginTxn(); void persist(); void delete(); void merge(); void refresh(); EntityCollection<T> collection(String name);  }### Answer:
@Test public void shouldCreateModel() { createModel("column1", "column2"); assertEquals(DummyModel.count(), 1); }
@Test public void shouldCountByFilter() { createModel("test", "test123"); createModel("test1", "test124"); createModel("test1", "test124"); assertEquals(DummyModel.count(new Filter(new Condition("column2", "test124"))), 2); }