@Test
public void testGetBooleanPropertyValueConversionFails()
{

    ConfigurationValue configurationValue = ConfigurationValue.USER_NAMESPACE_AUTHORIZATION_ENABLED;
    MockEnvironment environment = new MockEnvironment();
    environment.setProperty(configurationValue.getKey(), "NOT_A_BOOLEAN");
    try
    {
        configurationHelper.getBooleanProperty(configurationValue, environment);
        fail("Should throw an IllegalStatueException when property value is not boolean.");
    }
    catch (IllegalStateException e)
    {
        assertEquals(String.format("Configuration \"%s\" has an invalid boolean value: \"NOT_A_BOOLEAN\".", configurationValue.getKey()), e.getMessage());
    }
}