StellarParserRunner { @Override public String toString() { return String.format("Parser{%d successful, %d error(s)}", successCount, errorCount); } StellarParserRunner(String sensorType); List<JSONObject> parse(List<String> messages); StellarParserRunner withParserConfiguration(String sensorConfig); StellarParserRunner withParserConfiguration(Map<String, Object> config); StellarParserRunner withParserConfiguration(String sensorType, SensorParserConfig config); StellarParserRunner withContext(Context context); StellarParserRunner withGlobals(Map<String, Object> globals); String toJSON(); ParserConfigurations getParserConfigurations(); @Override String toString();  }
@Test public void testToString() { List<String> toParse = new ArrayList<>(); toParse.add(broMessage); toParse.add("{DAS}"); StellarParserRunner runner = new StellarParserRunner("bro") .withParserConfiguration(broParserConfig) .withContext(Context.EMPTY_CONTEXT()); List<JSONObject> messages = runner.parse(toParse); assertEquals("Parser{1 successful, 1 error(s)}", runner.toString()); }