Map map = new HashMap();
User user = new User();
user.setId("USEREMULE");
user.setName("Usuario Emulado");
user.setPassword("pass".getBytes());
Profile profile = new Profile();
profile.setId(-1);
Set<Permission> permissions = new HashSet<Permission>();
profile.setPermissions(permissions);
addPermission(permissions, "1", "");
addPermission(permissions, "2", "");
addPermission(permissions, "3", "");
addPermission(permissions, "4", "");
addPermission(permissions, "5", "");
addPermission(permissions, "6", "");
addPermission(permissions, "7", "");
addPermission(permissions, "8", "");
addPermission(permissions, "9", "");
addPermission(permissions, "10", "");
addPermission(permissions, "11", "");
addPermission(permissions, "12", "");
profile.setPermissions(permissions);
user.setProfile(profile);
setUserInSession(params, user);
map.put(ParamsConst.USER, user);