@Override
        public void visit(TraceNode node) {
            if (node.payload() == null || node.payload().getClass() != String.class) {
                return;
            }
            if (node.payload().toString().equals(JSONDebugSearcher.JSON_FIELD + JSON_PAYLOAD)) {
                gotJson = true;
            }
        }
Visit the trace and check JSON payload is stored there when requested.

@author Steinar Knutsen
container-search/src/test/java/com/yahoo/prelude/searcher/test/JSONDebugSearcherTestCase.java