ConfigLoader { public static Configuration config() { return getConfig(); }  static Configuration config(); static String logConfig(Configuration c); static void addEventListener(ConfigurationListener listener); static AnnotationDetector annotationDetector(Reporter reporter); static void addConfiguration(Configuration config); static void addToConfiguration(Path propertiesFile); static final String PROPS; }
@Test public void should_readFromSystem() { System.setProperty("t1", "1"); assertThat(ConfigLoader.config().getString("t1"), is(equalTo("1"))); ConfigLoader.config().setProperty("t1", "2"); assertThat(ConfigLoader.config().getString("t1"), is(equalTo("2"))); }