JobDefinitionHelper { public JobDefinitionAlternateKeyDto getJobDefinitionKey(String processDefinitionKey) { return getJobDefinitionKey(processDefinitionKey, getNamespaceAndJobNameRegexPattern()); }  String buildActivitiIdString(String namespaceCd, String jobName); String getActivitiJobDefinitionTemplate(); String getJobNameToken(); Pattern getNamespaceAndJobNameRegexPattern(); JobDefinitionAlternateKeyDto getJobDefinitionKey(String processDefinitionKey); JobDefinitionAlternateKeyDto getJobDefinitionKey(String processDefinitionKey, Pattern regexPattern); String getNamespaceToken(); void maskPassword(Parameter parameter);  }
@Test public void testGetJobDefinitionKey() { String testProcessDefinitionKey = String.format("%s.%s", NAMESPACE, JOB_NAME); assertEquals(new JobDefinitionAlternateKeyDto(NAMESPACE, JOB_NAME), jobDefinitionHelper.getJobDefinitionKey(testProcessDefinitionKey)); }