@SuppressWarnings("unchecked")
    @Test
    final void test() {
        Processor p = new ExampleProcessor();
        Chain<Processor> basic = new Chain<>(p);
        Processor initiator = new AsyncDataProcessingInitiator(basic);
        Chain<Processor> postProcessing = new Chain<>(initiator);
        Execution e = Execution.createRoot(postProcessing, 0, Execution.Environment.createEmpty());
        Response r = e.process(new Request());
        // just adds a listener to the result returned from basic
        assertEquals(0, r.data().asList().size());
        Processor producer = new AsyncDataProducer();
        Chain<Processor> asyncChain = new Chain<>(producer);
        Processor federator = new Federator(basic, asyncChain);
        e = Execution.createRoot(federator, 0, Execution.Environment.createEmpty());
        r = e.process(new Request());
        assertEquals(2, r.data().asList().size());
    }
See to it we can actually run the examples in the doc.

@author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a>
container-core/src/test/java/com/yahoo/processing/test/DocumentationTestCase.java