question: public static SolrDocument assertSearchOneDoc ( SolrParams p ) throws Exception { SolrDocumentList docs = assertSearch ( p ) ; assertEquals ( "does not match exactly one doc: " + p . toString ( ) + " => " + docs . toString ( ) , 1 , docs . getNumFound ( ) ) ; assertEquals ( "does not contain exactly one doc: " + p . toString ( ) + " => " + docs . toString ( ) , 1 , docs . size ( ) ) ; return docs . get ( 0 ) ; }
target:  Given a set of query params, executes as a Query against a random SolrClient and  asserts that exactly one document is returned 