@Override
  public void onWorkflowCompleted(Workflow workflow) {
    LOG.trace("Workflow {} is completed", workflow.getWorkflowId());
    metrics.counter(
        MetricConstants.WORKFLOW_STATUS_LISTENER_CALL_BACK_METRIC,
        getClass(),
        TYPE_TAG,
        "onWorkflowCompleted");
  }
@Test
  public void testWorkflowCompleted() {
    statusListener.onWorkflowCompleted(workflow);
    Assert.assertEquals(
        1L,
        metricRepo
            .getCounter(
                MetricConstants.WORKFLOW_STATUS_LISTENER_CALL_BACK_METRIC,
                MaestroWorkflowStatusListener.class,
                "type",
                "onWorkflowCompleted")
            .count());
  }