### Question:
Model extends BaseObject { public void updateAttributes(Map<String, Object> attributes) { BeanUtil.load(this, attributes); persist(); } 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 shouldUpdateAttributes() { DummyModel parent = createModel("test", "test123"); Map<String, Object> map = new HashMap<String, Object>(); map.put("column1", "test1"); map.put("column2", "test2"); parent.updateAttributes(map); assertEquals(parent.getColumn1(), "test1"); assertEquals(parent.getColumn2(), "test2"); }