@Test
public void testCreateWorkflow() {

    WorkflowDef workflowDef = new WorkflowDef();
    metadataResource.create(workflowDef);
    verify(mockMetadataService, times(1)).registerWorkflowDef(any(WorkflowDef.class));
}