@Test
public void jmsRemoteApiNoQueuesSupplied() {
String taskUserId = userId;
RuntimeEngine engine = RemoteRuntimeEngineFactory.newJmsBuilder()
.addDeploymentId(deploymentId)
.addJbossServerHostName("localhost")
.addUserName(userId)
.addPassword(password)
.doNotUseSsl()
.build();
// create JMS request
KieSession ksession = engine.getKieSession();
Map<String, Object> params = new HashMap<String, Object>();
params.put("employee", taskUserId);
ProcessInstance processInstance = ksession.startProcess("evaluation", params);
assertNotNull( processInstance );
logger.debug("Started process instance: " + processInstance + " "
+ (processInstance == null ? "" : processInstance.getId()));
TaskService taskService = engine.getTaskService();
List<TaskSummary> tasks = taskService.getTasksAssignedAsPotentialOwner(userId, "en-UK");
long taskId = findTaskId(processInstance.getId(), tasks);
logger.debug("Found task " + taskId);
Task task = taskService.getTaskById(taskId);