public void testMultipleAsyncStartEventsVariableHistory() {
Map<String, Object> variables = new HashMap<String, Object>();
variables.put("foo", "bar");
runtimeService.correlateMessage("newInvoiceMessage", new HashMap<String, Object>(), variables);
VariableInstance variableFoo = runtimeService.createVariableInstanceQuery().singleResult();
assertNotNull(variableFoo);
assertEquals("foo", variableFoo.getName());
assertEquals("bar", variableFoo.getValue());
assertEquals(1, runtimeService.createProcessInstanceQuery().count());
executeAvailableJobs();