@Override
        public Result search(Query query,Execution execution) {
            Result result1=execution.search(query);
            Result result2=execution.search(query);
            for (Iterator<Hit> i=result2.hits().iterator(); i.hasNext();)
                result1.hits().add(i.next());
            result1.mergeWith(result2);
            return result1;
        }
Tests basic search chain execution functionality

@author bratseth
container-search/src/test/java/com/yahoo/search/searchchain/test/ExecutionTestCase.java