@Test
public void testPredicateTriggeredEURUSD() 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.23211),
      1);
  PriceSpikePredicate priceSpikePredicate =
      createPriceSpikePredicate(TestingConstants.INSTRUMENT_EURUSD_ID);
  for (PriceTick priceTick : priceTicks) {
    if (priceSpikePredicate.apply(priceTick)) {
      return;
    }
  }
  fail("Predicate not triggered.");
}