this.configuration.getMyLeadAgentURL(), this.configuration
.getMyLeadUser(), this.configuration.getMyLeadProject());
MyLead myLead = new MyLead(myleadConfig, proxy);
WorkflowCreator workflowCreator = new WorkflowCreator();
Workflow workflow = workflowCreator.createSimpleMathWorkflow();
UUID uuid = UUID.randomUUID();
workflow.setName(uuid.toString());
// First deploy
String resourceID = myLead.save(workflow, false);
// Load
URI templateID2 = myLead.load(resourceID);
assertEquals(workflow.getUniqueWorkflowName(), templateID2);
// Redeploy
String resourceID2 = myLead.save(workflow, true);
// Load
URI templateID3 = myLead.load(resourceID2);
assertEquals(workflow.getUniqueWorkflowName(), templateID3);
}