@Test
public void testUpdateWorkflow() {

    WorkflowDef workflowDef = new WorkflowDef();
    List<WorkflowDef> listOfWorkflowDef = new ArrayList<>();
    listOfWorkflowDef.add(workflowDef);
    metadataResource.update(listOfWorkflowDef);
    verify(mockMetadataService, times(1)).updateWorkflowDef(anyList());
}