public WorkflowInstanceActionResponse unblockLatest(
      String workflowId, long workflowInstanceId, User caller) {
    return unblock(workflowId, workflowInstanceId, Constants.LATEST_ONE, caller);
  }
@Test
  public void testUnblockLatest() {
    when(instanceDao.tryUnblockFailedWorkflowInstance(any(), anyLong(), anyLong(), any()))
        .thenReturn(true);
    when(instance.getStatus()).thenReturn(WorkflowInstance.Status.FAILED);
    when(workflowDao.getRunStrategy("test-workflow"))
        .thenReturn(RunStrategy.create("STRICT_SEQUENTIAL"));
    boolean res = actionHandler.unblockLatest("test-workflow", 1, user).isCompleted();
    assertTrue(res);
    verify(instanceDao, times(1)).getLatestWorkflowInstanceRun("test-workflow", 1);
    verify(instanceDao, times(1))
        .tryUnblockFailedWorkflowInstance(eq("test-workflow"), eq(1L), eq(1L), any());
    verify(workflowHelper, times(1)).publishStartWorkflowEvent(eq("test-workflow"), eq(true));
  }