@Test
public void willApplyInlineProcessor() {

    InlineDataProcessor halver = new InlineDataProcessor() {
        public void applyInline(double[] data, int off, int len) {
            for (int i=off, max=off+len; i<max; i++) {
                data[i] *= .5;
            }
        }
    };
    int numDoubles = 100;
    TestProducer producer = new TestProducer(numDoubles, halver);
    producer.start();
    double[] result = producer.getAllData();
    for (int i=0; i<numDoubles; i++) {
        assertEquals(producer.DUMMY * .5, result[i], 1.e-10);
    }
}