SW360Configuration extends ConfigurableWorkflowItem { public String getProperty(String key) { String value = properties.get(key); if (value == null) { throw new ConfigurationException("Missing mandatory configuration property: " + key); } return value; } SW360Configuration(File propertiesFile);   SW360Configuration(File propertiesFile, SW360ConnectionConfigurationFactory factory,
                       ServiceFactory serviceFactory); Path getBaseDir(); Path getSourcesPath(); Path getCsvFilePath(); String getProperty(String key); SW360Connection getConnection(); Boolean getBooleanConfigValue(String key); void logConfiguration(Logger logger);  }
@Test public void testQueryUndefinedConfigurationProperty() { final String key = "undefined.property"; File propertiesFile = configFile("compliancetool-updater.properties"); SW360Configuration configuration = new SW360Configuration(propertiesFile); try { configuration.getProperty(key); fail("Access to undefined property not detected!"); } catch (ConfigurationException e) { assertThat(e.getMessage()).contains(key); } }