Map<String, List<?>> fieldVals = new HashMap<String, List<?>>();
fieldVals.put(PROCESS_INSTANCE_ID_LIST, statuses);
List<org.kie.api.task.model.TaskSummary> taskSumList = ((InternalTaskService)taskService).getTasksByVariousFields(busAdmin, fieldVals, true);
assertEquals( "Task summary list size", 1, taskSumList.size());
TaskSummaryImpl taskSumImpl = (TaskSummaryImpl) taskSumList.get(0);
taskSumImpl.setActualOwner(new UserImpl("Minnie"));
taskSumImpl.setCreatedBy(new UserImpl("Mickey"));
List<JaxbTaskSummary> jaxbTaskSumList = new ArrayList<JaxbTaskSummary>();
Iterator<TaskSummary> iter = taskSumList.iterator();
while( iter.hasNext() ) {
jaxbTaskSumList.add(new JaxbTaskSummary(iter.next()));