/**
* @throws MyLeadException
*/
public void estCreateProject() throws MyLeadException {
MyLeadAgentStub stub = new MyLeadAgentStub(this.configuration
.getMyLeadAgentURL(), this.myProxyClient.getProxy());
try {
MinimalLEADMetadata projectMetadata = new MinimalLEADMetadata(
FAKE_USER_ID, "Project1", "Project description");
projectMetadata.setResourceId("Unknown"); // this is neccesary.
String projectID = stub.createProject(FAKE_USER_ID, projectMetadata
.toString(), true);
MinimalLEADMetadata workflowTemplatesMetadata = new MinimalLEADMetadata(
FAKE_USER_ID, MyLead.WORKFLOW_TEMPLATES_COLLECTION,
"Workflow templates collection description");
workflowTemplatesMetadata.setResourceId("Unknown");
LEADresourceDocument leadResourceDoc;
leadResourceDoc = LEADresourceDocument.Factory.parse(workflowTemplatesMetadata.toString());
String workflowTemplatesCollectionID = stub.createCollection(
FAKE_USER_ID, leadResourceDoc.getLEADresource(), projectID,
true);
logger.info("workflowTemplatesCollectionID: "
+ workflowTemplatesCollectionID);