Configuration { public static Configuration createEnv() { return builder().addEnvVariables().addSystemProperties().build(); } private  Configuration(File homeDir, Map<String, String> props); FileSystem fileSystem(); Locators locators(); FileLocation getFileLocationOfShared(String relativePath); String getString(String key); String getString(String key, @Nullable String defaultValue); @CheckForNull String getStringByKeys(String... keys); @CheckForNull String getStringByKeys(Predicate<String> validator, String... keys); int getInt(String key, int defaultValue); Map<String, String> asMap(); static Configuration createEnv(); static Configuration create(Properties properties); static Configuration create(Map<String, String> properties); static Configuration create(); static Builder builder();  }
@Test public void createEnv() { Configuration config = Configuration.createEnv(); assertThat(config.getString("java.io.tmpdir")).isNotNull(); }