public void testNextTermGroup() {
   expressionAssignmentHandler.expression = "user(john) --> group(hierarchy)";
   expressionAssignmentHandler.assign(assignable, executionContext);
   Set pooledActors = assignable.getPooledActors();
   PooledActor pooledActor = (PooledActor) pooledActors.iterator().next();
   assertEquals("hellsangels", pooledActor.getActorId());
 }
 public void testFirstTermVariableGroup() {
   expressionAssignmentHandler.expression = "variable(groupvariable)";
   Group hellsangels = identitySession.getGroupByName("hellsangels");
   processInstance.getContextInstance().setVariable("groupvariable", hellsangels);
   expressionAssignmentHandler.assign(assignable, executionContext);
   Set pooledActors = assignable.getPooledActors();
   PooledActor pooledActor = (PooledActor) pooledActors.iterator().next();
   assertEquals("hellsangels", pooledActor.getActorId());
 }