@Test
public void executeAsynch() throws Exception {

    activity.configure(configBean);
    Map<String, Object> inputs = new HashMap<String, Object>();
    inputs.put("firstInput", "hello");
    Map<String, Class<?>> expectedOutputTypes = new HashMap<String, Class<?>>();
    expectedOutputTypes.put("simpleOutput", String.class);
    expectedOutputTypes.put("moreOutputs", String.class);
    Map<String, Object> outputs = ActivityInvoker.invokeAsyncActivity(activity, inputs, expectedOutputTypes);
    assertEquals("Unexpected outputs", 2, outputs.size());
    assertEquals("simple", outputs.get("simpleOutput"));
    assertEquals(Arrays.asList("Value 1", "Value 2"), outputs.get("moreOutputs"));
}