}
@Test
public void batchCreateObject() {
String id1 = UserData.getUserId();
User user1 = new User();
user1.setId(id1);
user1.setLoginName(DataUtils.randomName("user"));
user1.setName(DataUtils.randomName("User"));
String id2 = UserData.getUserId();
User user2 = new User();
user2.setId(id2);
user2.setLoginName(DataUtils.randomName("user"));
user2.setName(DataUtils.randomName("User"));
List<User> list = Lists.newArrayList(user1, user2);
userJdbcDao.batchCreateObject(list);
User newUser1 = userJdbcDao.queryObject(id1);
assertEquals(user1.getLoginName(), newUser1.getLoginName());
User newUser2 = userJdbcDao.queryObject(id2);
assertEquals(user2.getLoginName(), newUser2.getLoginName());
}