public PropertiesSnapshot getWorkflowPropertiesSnapshot(String workflowId, String snapshotId) {
    if (Constants.LATEST_INSTANCE_RUN.equalsIgnoreCase(snapshotId)) {
      return getLatestPropertiesSnapshot(workflowId);
    } else {
      throw new UnsupportedOperationException("Specific snapshot version is not implemented.");
    }
  }
@Test
  public void testInvalidGetWorkflowPropertiesSnapshot() {
    AssertHelper.assertThrows(
        "Cannot get non-existing workflow's properties-snapshot",
        MaestroNotFoundException.class,
        "Cannot find workflow [" + TEST_WORKFLOW_ID1 + "]'s current properties-snapshot.",
        () -> workflowDao.getWorkflowPropertiesSnapshot(TEST_WORKFLOW_ID1, "latest"));

    AssertHelper.assertThrows(
        "Cannot get a specific version of snapshot",
        UnsupportedOperationException.class,
        "Specific snapshot version is not implemented.",
        () -> workflowDao.getWorkflowPropertiesSnapshot(TEST_WORKFLOW_ID1, "12345"));
  }