### Question:
MaximumDrawdownCriterion extends AbstractAnalysisCriterion { @Override public boolean betterThan(double criterionValue1, double criterionValue2) { return criterionValue1 < criterionValue2; }  @Override double calculate(TimeSeries series, TradingRecord tradingRecord); @Override double calculate(TimeSeries series, Trade trade); @Override boolean betterThan(double criterionValue1, double criterionValue2);  }### Answer:
@Test public void betterThan() { AnalysisCriterion criterion = new MaximumDrawdownCriterion(); assertTrue(criterion.betterThan(0.9, 1.5)); assertFalse(criterion.betterThan(1.2, 0.4)); }