SimpleConfig { public SimpleConfig(String configdata) { this.params = parseParams(configdata); } SimpleConfig(String configdata);  SimpleConfig(Activity activity, String param); Optional<String> getString(String name); Optional<Integer> getInteger(String name); Optional<Long> getLong(String name); Optional<Double> getDouble(String name);  }
@Test public void testSimpleConfig() { SimpleConfig c = new SimpleConfig("a=1"); assertThat(c.getString("a")).contains("1"); }