public boolean isDeletionInProgress(String workflowId) {
    return withRetryableQuery(
        EXIST_IN_PROGRESS_DELETION_QUERY, stmt -> stmt.setString(1, workflowId), ResultSet::next);
  }
@Test
  public void testIsDeletionInProgress() throws Exception {
    WorkflowDefinition wfd = loadWorkflow(TEST_WORKFLOW_ID1);
    workflowDao.addWorkflowDefinition(wfd, wfd.getPropertiesSnapshot().extractProperties());
    assertFalse(deletionDao.isDeletionInProgress(TEST_WORKFLOW_ID1));
    workflowDao.deleteWorkflow(TEST_WORKFLOW_ID1, User.create("tester"));
    assertTrue(deletionDao.isDeletionInProgress(TEST_WORKFLOW_ID1));
  }