@Test
public void testRemoveWorkflow() {

    Workflow workflow = new Workflow();
    workflow.setStatus(WorkflowStatus.COMPLETED);
    when(executionDAO.getWorkflow(anyString(), anyBoolean())).thenReturn(workflow);
    executionDAOFacade.removeWorkflow("workflowId", false);
    verify(indexDAO, never()).updateWorkflow(any(), any(), any());
    verify(indexDAO, times(1)).asyncRemoveWorkflow(workflow.getWorkflowId());
}