### Question:
BullishHarami extends SingleValueIndicator { public BullishHarami(TimeInterval timeInterval) { super(timeInterval, null); } BullishHarami(TimeInterval timeInterval); @Override double getValue();  }### Answer:
@Test public void bullishHaramiTest() { int i = 0; BullishHarami indicator = new BullishHarami(TimeInterval.MINUTE); indicator.accumulate(CandleHelper.newCandle(i++, 10, 18, 20, 10)); assertEquals(0, indicator.getValue(), 0.0001); indicator.accumulate(CandleHelper.newCandle(i++, 21, 15, 22, 14)); assertEquals(0, indicator.getValue(), 0.0001); indicator.accumulate(CandleHelper.newCandle(i++, 17, 20, 21, 17)); 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); }