Replaced RuntimeException expectations with ConfigurationException