@Test
public void testValidHammerCandlestick() throws Exception {

  List<PriceTick> priceTicks = createPriceTicks(
      INSTRUMENT,
      DATE_RANGE,
      9905.0,
      9914.0,
      9985.5,
      9909.8);
  CandlestickHammerPredicate candlestickHammerPredicate = createCandlestickHammerPredicate();
  for (PriceTick priceTick : priceTicks) {
    if (candlestickHammerPredicate.apply(priceTick)) {
      return;
    }
  }
  fail("Predicate not triggered.");
}