@Test
public void getWorkflows() {

    Workflow workflow = new Workflow();
    workflow.setCorrelationId("123");
    ArrayList<Workflow> listOfWorkflows = new ArrayList<Workflow>() {{
        add(workflow);
    }};
    when(mockWorkflowService.getWorkflows(anyString(), anyString(), anyBoolean(), anyBoolean())).thenReturn(listOfWorkflows);
    assertEquals(listOfWorkflows, workflowResource.getWorkflows("test1", "123", true, true));
}