@Test
public void testValidInvertedHammerCandlestick() throws Exception {

  List<PriceTick> priceTicks = createPriceTicks(
      INSTRUMENT,
      DATE_RANGE,
      10022.5,
      10040.3,
      10016.3,
      10020.0);
  CandlestickHammerPredicate candlestickHammerPredicate = createCandlestickHammerPredicate();
  for (PriceTick priceTick : priceTicks) {
    if (candlestickHammerPredicate.apply(priceTick)) {
      return;
    }
  }
  fail("Predicate not triggered.");
}