@Test
public void testGetWorkflowDef() {

    WorkflowDef workflowDef = new WorkflowDef();
    workflowDef.setName("test");
    workflowDef.setVersion(1);
    workflowDef.setDescription("test");
    when(mockMetadataService.getWorkflowDef(anyString(), any())).thenReturn(workflowDef);
    assertEquals(workflowDef, metadataResource.get("test", 1));
}