@Test
public void testGetAllWorkflowDef() {

    WorkflowDef workflowDef = new WorkflowDef();
    workflowDef.setName("test");
    workflowDef.setVersion(1);
    workflowDef.setDescription("test");
    List<WorkflowDef> listOfWorkflowDef = new ArrayList<>();
    listOfWorkflowDef.add(workflowDef);
    when(mockMetadataService.getWorkflowDefs()).thenReturn(listOfWorkflowDef);
    assertEquals(listOfWorkflowDef, metadataResource.getAll());
}