verify(variableInstanceQueryMock).variableScopeIdIn(TASK_A_ID, EXECUTION_A_ID, PROCESS_INSTANCE_A_ID, TASK_B_ID, EXECUTION_B_ID, TASK_C_ID, CASE_EXECUTION_A_ID, CASE_INSTANCE_A_ID);
verify(variableInstanceQueryMock, times(1)).variableNameIn((String) anyVararg());
verify(variableInstanceQueryMock).variableNameIn("foo", "bar");
verify(variableInstanceQueryMock, times(1)).list();
String content = response.asString();
List<Map<String, Object>> taskList = from(content).getList("_embedded.task");
// task A
List<Map<String, Object>> variables = getEmbeddedTaskVariables(taskList.get(0));
assertThat(variables).hasSize(4);