// 从DbUnit的EXCEL数据集文件创建多个bean
 public static <T> T createBean(Class testClass, String file, String tableName, Class<T> clazz)
     throws Exception {
   BeanUtilsBean beanUtils = createBeanUtils();
   List<Map<String, Object>> propsList = createProps(testClass, file, tableName);
   T bean = clazz.newInstance();
   beanUtils.populate(bean, propsList.get(0));
   return bean;
 }
 // 从DbUnit的EXCEL数据集文件创建多个bean
 public static <T> List<T> createBeans(
     Class testClass, String file, String tableName, Class<T> clazz) throws Exception {
   BeanUtilsBean beanUtils = createBeanUtils();
   List<Map<String, Object>> propsList = createProps(testClass, file, tableName);
   List<T> beans = new ArrayList<T>();
   for (Map<String, Object> props : propsList) {
     T bean = clazz.newInstance();
     beanUtils.populate(bean, props);
     beans.add(bean);
   }
   return beans;
 }