### Question:
AppGroupDao extends BaseDao { public int updateAppGroup(AppGroup appGroup) throws SQLException { if (null == appGroup || appGroup.getId() == null) { return 0; } return this.getDasClient().update(appGroup); }  Long insertAppGroup(AppGroup appGroup); AppGroup getAppGroupById(Long id); int updateAppGroup(AppGroup appGroup); int deleteAppGroup(AppGroup appGroup); Long getCountByName(String name); Long getCountByIdAndName(Long id, String name); int changeServerGroup(Long newServerGroupId, Set<Long> appGroupIds); List<AppGroup> getAppGroupsByServerGroupId(Long serverGroupId); Long getAppGroupTotalCount(Paging<AppGroup> paging); List<AppGroupView> findAppGroupPageList(Paging<AppGroup> paging);  }### Answer:
@Test public void updateAppGroup() throws Exception { appGroup.setId(1L); appGroup.setComment("fix"); int count = appGroupDao.updateAppGroup(appGroup); System.out.println("updateAppGroup :-------> " + count); Assert.assertTrue(count > 0); }