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);
}

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 ) ; }
given a set of query params , executes as a query against a random solrclient and asserts that exactly one document is returned
