result = queryTaskHelper.queryTaskOrProcInstAndAssociatedVariables(USER_ID, queryParams, pageInfo, maxResults);
assertNotNull( "null result", result );
assertFalse( "empty result", result.getTaskInfoList().isEmpty() );
assertTrue( "more than 1 result", result.getTaskInfoList().size() == 1 );
JaxbQueryTaskInfo taskInfo = result.getTaskInfoList().get(0);
assertEquals( "more than 1 task sum", 1, taskInfo.getTaskSummaries().size() );
assertEquals( "more than 1 variable", 1, taskInfo.getVariables().size() );
TaskSummary taskSum = taskInfo.getTaskSummaries().get(0);
assertNotNull( taskSum );
assertEquals( taskId, taskSum.getId().longValue() );
JaxbVariableInfo varInfo = taskInfo.getVariables().get(0);
assertEquals( "inputStr", varInfo.getName() );
roundTripJson(result);
roundTripXml(result);
}