Map<String, Object> expectedVariables = new HashMap<String, Object>();
expectedVariables.put("aKey", "aValue");
verify(runtimeServiceMock).createMessageCorrelation(eq(messageName));
verify(messageCorrelationBuilderMock).processInstanceBusinessKey(eq(businessKey));
verify(messageCorrelationBuilderMock).setVariables(argThat(new EqualsMap(expectedVariables)));
for (Entry<String, Object> expectedKey : expectedCorrelationKeys.entrySet()) {
String name = expectedKey.getKey();
Object value = expectedKey.getValue();
verify(messageCorrelationBuilderMock).processInstanceVariableEquals(name, value);