@Test
public void importBeans() {

    List<CsvBean> list = CollectionUtil.createArrayList();
    CsvBean bean = createBean("小明", 25, "自由", "某某小区");
    list.add(bean);
    bean = createBean("小李", 28, "IT", "某某家园");
    list.add(bean);
    bean = createBean("小红", 7, null, "父母家");
    list.add(bean);
    bean = createBean("小王", 26, "金融", "某某别墅");
    list.add(bean);
    try {
        processor.importBeans(bean.getClass(), list.toArray(new CsvBean[0]), testBeansPath);
    } catch (IOException e) {
        logger.error("", e);
    }
}