@Test
public void testGetRequiredPropertyIllegalStateException()
{

    ConfigurationValue configurationValue = ConfigurationValue.HERD_ENVIRONMENT;
    MockEnvironment environment = new MockEnvironment();
    environment.setProperty(configurationValue.getKey(), BLANK_TEXT);
    try
    {
        configurationHelper.getRequiredProperty(configurationValue, environment);
        fail();
    }
    catch (IllegalStateException e)
    {
        assertEquals(String.format("Configuration \"%s\" must have a value.", ConfigurationValue.HERD_ENVIRONMENT.getKey()), e.getMessage());
    }
}