### Question:
DefaultStatistics { public static Stats getDefaultStats(boolean isStrict) { Stats stats = new Stats(); stats.putStatisticType(Stats.StatType.COUNT.type); if(!isStrict) { stats.putStatisticType(Stats.StatType.PASSED.type); stats.putStatisticType(Stats.StatType.FAILED.type); } stats.putStatisticType(Stats.StatType.AVERAGE.type); stats.putStatisticType(Stats.StatType.MINIMUM.type); stats.putStatisticType(Stats.StatType.MAXIMUM.type); stats.putStatisticType(Stats.StatType.CONCURRENCY.type); return stats; } DefaultStatistics(BaseResult simulation,HashMap<String,List<GroupResult>> results); Statistics getStatistics(); HashMap<String,List<Long>> getSortedResults(); Stats getStats(boolean isStrict); Stats getStats(boolean isStrict,LocalDateTime startPeriod,LocalDateTime endPeriod); HashMap<String,HashMap<String,StepErrors>> getErrors(); static Stats getDefaultStats(boolean isStrict);  }### Answer:
@Test public void testGetDefaultStats() { Stats s = DefaultStatistics.getDefaultStats(true); assertEquals("avg",s.getStatisticType("avg").getKey()); assertEquals("min",s.getStatisticType("min").getKey()); assertEquals("max",s.getStatisticType("max").getKey()); assertEquals("cnt",s.getStatisticType("cnt").getKey()); assertEquals("cncrnt",s.getStatisticType("cncrnt").getKey()); assertEquals(null,s.getStatisticType("fail")); s = DefaultStatistics.getDefaultStats(false); assertEquals("avg",s.getStatisticType("avg").getKey()); assertEquals("min",s.getStatisticType("min").getKey()); assertEquals("max",s.getStatisticType("max").getKey()); assertEquals("cnt",s.getStatisticType("cnt").getKey()); assertEquals("cncrnt",s.getStatisticType("cncrnt").getKey()); assertEquals("pass",s.getStatisticType("pass").getKey()); assertEquals("fail",s.getStatisticType("fail").getKey()); }