m.setMap(map);
Map<String, User[]> userMap = new HashMap<String, User[]>();
List<User> users = new ArrayList<User>();
for (int j = 0; j < 3; j++) {
User user = new User();
user.setId((long)j);
user.setName("user" + j);
users.add(user);
}
User[] u = users.toArray(new User[0]);
userMap.put("user1", u);
users = new ArrayList<User>();
for (int j = 10; j < 12; j++) {
User user = new User();
user.setId((long)j);
user.setName("user_b" + j);
users.add(user);
}
u = users.toArray(new User[0]);
userMap.put("user2", u);
m.setUserMap(userMap);