private void addResult(Query query, String sdName, String content, DocumentSourceSearcher docsource) {
        Result r = new Result(query);
        FastHit hit = new FastHit();
        hit.setId("http://abc.html");
        hit.setRelevance(new Relevance(1));
        hit.setField(Hit.SDDOCNAME_FIELD, sdName);
        hit.setField("dynteaser", content);
        r.hits().add(hit);
        docsource.addResult(query, r);
    }
Creates a search chain which always returns a result with one hit containing information given in this

@param sdName the search definition type of the returned hit
@param content the content of the "dynteaser" field of the returned hit
container-search/src/test/java/com/yahoo/search/rendering/JsonRendererTestCase.java