### Question:
BaseService implements IBaseService { @Override public void delete(BaseEntity obj) throws ServiceException { entityNullValidate(obj); getBaseDao().delete(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 testDelete() throws ServiceException { String userId = null; for (TTestUser testUser : userMap.values()) { userId = testUser.getId(); baseService.delete(testUser); userMap.remove(userId); break; } assertNull("删除id为：" + userId + "的对象失败！", baseService.get(TTestUser.class, userId)); }
@Test public void testDeleteClass() throws ServiceException { String userId = null; for (TTestUser testUser : userMap.values()) { userId = testUser.getId(); baseService.delete(TTestUser.class, userId); userMap.remove(userId); } assertNull("删除id为：" + userId + "的对象失败！", baseService.get(TTestUser.class, userId)); }