[search] Add a MockResource.invoke and head method
[search] Add a MockResource.invoke and head method

This fixes the search.tests.TestWithMockedSolr tests

yoer/hue,vmax-feihu/hue,vmax-feihu/hue,MobinRanjbar/hue,fangxingli/hue,MobinRanjbar/hue,jjmleiro/hue,yoer/hue,kawamon/hue,cloudera/hue,MobinRanjbar/hue,cloudera/hue,xq262144/hue,kawamon/hue,MobinRanjbar/hue,jjmleiro/hue,jjmleiro/hue,kawamon/hue,hdinsight/hue,kawamon/hue,cloudera/hue,xq262144/hue,kawamon/hue,jjmleiro/hue,yoer/hue,kawamon/hue,todaychi/hue,Peddle/hue,lumig242/Hue-Integration-with-CDAP,xq262144/hue,yoer/hue,jayceyxc/hue,todaychi/hue,yoer/hue,xq262144/hue,Peddle/hue,vmax-feihu/hue,Peddle/hue,cloudera/hue,MobinRanjbar/hue,yoer/hue,hdinsight/hue,Peddle/hue,cloudera/hue,kawamon/hue,todaychi/hue,cloudera/hue,jayceyxc/hue,fangxingli/hue,xq262144/hue,fangxingli/hue,lumig242/Hue-Integration-with-CDAP,MobinRanjbar/hue,hdinsight/hue,fangxingli/hue,kawamon/hue,jayceyxc/hue,cloudera/hue,todaychi/hue,vmax-feihu/hue,jjmleiro/hue,fangxingli/hue,vmax-feihu/hue,kawamon/hue,lumig242/Hue-Integration-with-CDAP,cloudera/hue,lumig242/Hue-Integration-with-CDAP,lumig242/Hue-Integration-with-CDAP,lumig242/Hue-Integration-with-CDAP,ahmed-mahran/hue,MobinRanjbar/hue,hdinsight/hue,todaychi/hue,cloudera/hue,yoer/hue,ahmed-mahran/hue,kawamon/hue,lumig242/Hue-Integration-with-CDAP,xq262144/hue,ahmed-mahran/hue,xq262144/hue,Peddle/hue,jayceyxc/hue,hdinsight/hue,kawamon/hue,kawamon/hue,ahmed-mahran/hue,cloudera/hue,ahmed-mahran/hue,xq262144/hue,Peddle/hue,MobinRanjbar/hue,todaychi/hue,vmax-feihu/hue,fangxingli/hue,kawamon/hue,ahmed-mahran/hue,ahmed-mahran/hue,jayceyxc/hue,ahmed-mahran/hue,hdinsight/hue,fangxingli/hue,jjmleiro/hue,Peddle/hue,cloudera/hue,Peddle/hue,jayceyxc/hue,Peddle/hue,jjmleiro/hue,yoer/hue,cloudera/hue,jayceyxc/hue,xq262144/hue,todaychi/hue,kawamon/hue,cloudera/hue,todaychi/hue,lumig242/Hue-Integration-with-CDAP,jayceyxc/hue,todaychi/hue,kawamon/hue,vmax-feihu/hue,cloudera/hue,cloudera/hue,kawamon/hue,hdinsight/hue,kawamon/hue,jjmleiro/hue,cloudera/hue,jayceyxc/hue,hdinsight/hue,kawamon/hue,cloudera/hue,cloudera/hue,vmax-feihu/hue,jjmleiro/hue,fangxingli/hue,lumig242/Hue-Integration-with-CDAP