@Override
        public Result search(Query query, Execution execution) {
            Result result = execution.search(query);
            if(waittime != 0)
                try {
                    Thread.sleep(waittime);
                } catch (InterruptedException e) {
            }
            return result;
        }
Test for aynchrounous execution

@author Arne Bergene Fossaa
container-search/src/test/java/com/yahoo/search/searchchain/AsyncExecutionTestCase.java