### Question:
MedianPrice extends SingleValueIndicator { @Override public double getValue() { return this.value; } MedianPrice(TimeInterval interval); @Override double getValue();  }### Answer:
@Test public void median() { MedianPrice indicator = new MedianPrice(TimeInterval.MINUTE); double result; for (int i = 0; i < 10; i++) { result = (values[i].high + values[i].low) / 2; indicator.accumulate(CandleHelper.newCandle(i, 0, 0, values[i].high, values[i].low)); assertEquals(result, indicator.getValue(), 0.0000001); } }