SystemPropertiesERDC implements ErrorReportDataCollector { @Override public Map<String, String> collect(ErrorReportCollectingContext context) { Map<String, String> r = new HashMap<>(); Properties properties = System.getProperties(); fillValues(r, properties); return r; }  @Override Map<String, String> collect(ErrorReportCollectingContext context);  }
@Test public void testCollect() { Map<String, String> collect = erdc.collect(null); assertEquals(collect.get(PREFIX+KEY1), "value1"); assertEquals(collect.get(PREFIX+KEY2), "value2"); }