final AtomicInteger count = new AtomicInteger();
PriceReader reader = new PriceReader(sink.createExcerpt(), new PriceListener() {
@Override
public void onPrice(long timeInMicros, String symbol, double bp, int bq, double ap, int aq) {
count.incrementAndGet();
}
});
pw.onPrice(1, "symbol", 99.9, 1, 100.1, 2);
reader.read();