@Test
public void testGetExecutionStatus() {

    Workflow workflow = new Workflow();
    workflow.setCorrelationId("c123");
    when(mockWorkflowService.getExecutionStatus(anyString(), anyBoolean())).thenReturn(workflow);
    assertEquals(workflow, workflowResource.getExecutionStatus("w123", true));
}