### Question:
BaseService implements IBaseService { @Override public void saveOrUpdate(BaseEntity obj) throws ServiceException { entityNullValidate(obj); getBaseDao().saveOrUpdate(obj); }  @Override void save(BaseEntity obj); @Override void delete(BaseEntity obj); @Override void delete(Class<?> clazz, Serializable id); @Override void saveOrUpdate(BaseEntity obj); @Override void update(BaseEntity obj); @Override Object get(Class<?> clazz, Serializable id); @Override Object load(Class<?> clazz, Serializable id);  }### Answer:
@Test public void testSaveOrUpdate() throws ServiceException { TTestUser testUser = null; testUser = new TTestUser(); testUser.setName(testUserName); testUser.setPassword("password"); testUser.setEnabled(true); testUser.setCreateTime(DateUtils.getStandTime()); baseService.saveOrUpdate(testUser); userMap.put(testUser.getId(), testUser); }