@Test
public void testPredicateNotTriggeredEURUSD() throws Exception {

  Iterable<PriceTick> priceTicks = TestingPriceFactory.createPriceTicks(
      TestingConstants.INSTRUMENT_EURUSD_ID,
      Range.closed(
          TestingConstants.DEFAULT_START_DATE.getMillis(),
          TestingConstants.DEFAULT_START_DATE.plusMinutes(1).getMillis()),
      Range.closed(1.23101, 1.23172),
      1);
  PriceSpikePredicate priceSpikePredicate =
      createPriceSpikePredicate(TestingConstants.INSTRUMENT_EURUSD_ID);
  for (PriceTick priceTick : priceTicks) {
    if (priceSpikePredicate.apply(priceTick)) {
      fail("Predicate triggered.");
    }
  }
}