question: public static void assertQEx ( String message , SolrQueryRequest req , int code ) { try { ignoreException ( "." ) ; h . query ( req ) ; fail ( message ) ; } catch ( SolrException sex ) { assertEquals ( code , sex . code ( ) ) ; } catch ( Exception e2 ) { throw new RuntimeException ( "Exception during query" , e2 ) ; } finally { unIgnoreException ( "." ) ; } }
target:  Makes sure a query throws a SolrException with the listed response code 