SystemPropertySource extends SourceSupport { public Model load() throws Exception { if (name == null) { throw new MissingPropertyException("name"); } String value = System.getProperty(name); if (value == null) { log.trace("Unable to load; property not set: {}", name); return null; } URL url = null; try { url = new URL(value); } catch (MalformedURLException e) { File file = new File(value); if (file.exists()) { url = file.toURI().toURL(); } } if (url == null) { throw new ConfigurationException("Unable to load; unable to resolve target: " + value); } return load(url); } SystemPropertySource();  SystemPropertySource(final String name); void setName(final String name); String getName(); Model load(); @Override String toString();  }
@Test public void test3() throws Exception { try { SystemPropertySource s = new SystemPropertySource(); s.load(); fail(); } catch (ConfigurationException expected) { } }