### Question:
BearishHarami extends SingleValueIndicator { @Override public double getValue() { return value; } BearishHarami(TimeInterval timeInterval); @Override double getValue();  }### Answer:
@Test public void bearishHaramiIndicator() { int i = 0; BearishHarami indicator = new BearishHarami(TimeInterval.MINUTE); indicator.accumulate(CandleHelper.newCandle(i++, 10, 18, 20, 10)); assertEquals(0, indicator.getValue(), 0.0001); indicator.accumulate(CandleHelper.newCandle(i++, 15, 18, 19, 14)); assertEquals(0, indicator.getValue(), 0.0001); indicator.accumulate(CandleHelper.newCandle(i++, 17, 16, 19, 15)); assertEquals(1, indicator.getValue(), 0.0001); indicator.accumulate(CandleHelper.newCandle(i++, 15, 11, 15, 8)); assertEquals(0, indicator.getValue(), 0.0001); indicator.accumulate(CandleHelper.newCandle(i++, 11, 12, 12, 10)); assertEquals(0, indicator.getValue(), 0.0001); }