TrialAppProperties implements AppProperties { @Override public String toString() { String s =""; for (String key : originalMap.keySet()) { Object value = originalMap.get(key); s += key + ", " + value.getClass().getName() + ", " + value; } return s; } TrialAppProperties(Map<String, Object> values);  TrialAppProperties(Map<String, Object> values, List<String> missingKeys);  TrialAppProperties(); @Override List<String> getMissingProperties(); @Override List<String> getKnownProperties(); @Override boolean isValid(); @Override void clear(); @Override Object get(String key); @Override String toString();  }
@Test public void toStringReturnsOk() { TrialAppProperties props = new TrialAppProperties(Collections.singletonMap("key1", 12)); assertEquals("key1, java.lang.Integer, 12", props.toString()); }