try
{
Iterator roles = service.getRoles("turbine");
while (roles.hasNext())
{
GroupRole gr = (GroupRole) roles.next();
role = gr.getRole();
map.put(role.getName(), role);
System.out.println("role = " + role.getName());
}
assertTrue(map.get("user") != null);
assertTrue(map.get("admin") == null);
map.clear();
roles = service.getRoles("admin");
while (roles.hasNext())
{
GroupRole gr = (GroupRole)roles.next();
role = gr.getRole();
map.put(role.getName(), role);
System.out.println("role = " + role.getName());
}
assertTrue(map.get("user") != null);
assertTrue(map.get("admin") != null);