@Test
public void testGenericCollectionMapping() throws Exception {
Mapper mapper = getMapper(new String[] { "genericCollectionMapping.xml" });
// prepare beans
User user1 = newInstance(User.class);
user1.setFirstName("first name 1");
user1.setLastName("last name 1");
User user2 = newInstance(User.class);
user2.setFirstName("first name 2");
user2.setLastName("last name 2");
Set<User> users = newInstance(HashSet.class);
users.add(user1);
users.add(user2);