@Test
public void testGetRequiredConfigurationValueBlank() throws Exception
{

    Map<String, Object> overrideMap = new HashMap<>();
    overrideMap.put(ConfigurationValue.ACTIVITI_JOB_DEFINITION_ID_TEMPLATE.getKey(), BLANK_TEXT);
    modifyPropertySourceInEnvironment(overrideMap);
    try
    {
        herdStringHelper.getRequiredConfigurationValue(ConfigurationValue.ACTIVITI_JOB_DEFINITION_ID_TEMPLATE);
        fail("Suppose to throw an IllegalStateException when encrypted configuration value is blank.");
    }
    catch (IllegalStateException e)
    {
        assertEquals(
            String.format("Missing configuration parameter value for key \"%s\".", ConfigurationValue.ACTIVITI_JOB_DEFINITION_ID_TEMPLATE.getKey()),
            e.getMessage());
    }
    finally
    {
        restorePropertySourceInEnvironment();
    }
}