+ MockWorkflowRepository.TASK1_ID + " "
+ MockWorkflowRepository.TASK2_ID + " "
+ MockWorkflowRepository.TASK3_ID
+ " --metaData --key Filename data.dat --key NominalDate 2001-02-20")
.split(" "));
MethodCallDetails methodCallDetails = client.getLastMethodCallDetails();
assertEquals("executeDynamicWorkflow", methodCallDetails.getMethodName());
assertEquals(Lists.newArrayList(MockWorkflowRepository.TASK1_ID,
MockWorkflowRepository.TASK2_ID, MockWorkflowRepository.TASK3_ID),
methodCallDetails.getArgs().get(0));
Metadata m = new Metadata();
m.addMetadata("NominalDate", Lists.newArrayList("2001-02-20"));
m.addMetadata("Filename", Lists.newArrayList("data.dat"));
assertEquals(m, methodCallDetails.getArgs().get(1));
}