@Test
public void testGetActivitiJobDefinitionTemplateUsingConfiguredActivitiIdTemplate() throws Exception
{

    // Set up test values.
    String testActivitiIdTemplate = "testActivitiIdTemplate";
    // Override configuration.
    Map<String, Object> overrideMap = new HashMap<>();
    overrideMap.put(ConfigurationValue.ACTIVITI_JOB_DEFINITION_ID_TEMPLATE.getKey(), testActivitiIdTemplate);
    modifyPropertySourceInEnvironment(overrideMap);
    try
    {
        assertEquals(testActivitiIdTemplate, jobDefinitionHelper.getActivitiJobDefinitionTemplate());
    }
    finally
    {
        // Restore the property sources so we don't affect other tests.
        restorePropertySourceInEnvironment();
    }
}