### Question:
BasicStatistic implements Result { public void addStatistic(String statisticName, BasicStatisticValue statisticValue) { this.statisticMap.put(statisticName, statisticValue); } protected  BasicStatistic();  BasicStatistic(ColumnIdentifier... columnIdentifier);  BasicStatistic(Map<String, BasicStatisticValue> statisticMap, ColumnIdentifier... columnIdentifier); void addStatistic(String statisticName, BasicStatisticValue statisticValue); ColumnCombination getColumnCombination(); void setColumnCombination(ColumnCombination columnCombination); Map<String, BasicStatisticValue> getStatisticMap(); void setStatisticMap(Map<String, BasicStatisticValue> statisticMap); @Override @XmlTransient void sendResultTo(OmniscientResultReceiver resultReceiver); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); static final String NAME_COLUMN_SEPARATOR; static final String COLUMN_VALUE_SEPARATOR; static final String STATISTIC_SEPARATOR; }### Answer:
@Test public void testAddStatistic() { BasicStatistic statistic = new BasicStatistic(new ColumnIdentifier("table", "column")); String expectedName = "statistic"; BasicStatisticValueString expectedValue = new BasicStatisticValueString("value"); statistic.addStatistic(expectedName, expectedValue); assertTrue(statistic.statisticMap.containsKey(expectedName)); assertTrue(statistic.statisticMap.get(expectedName) == expectedValue); }