public function testBuildWithHeader()
 {
     $query = new SelectQuery();
     $query->addParam('p1', 'v1');
     $query->addParam('p2', 'v2');
     $query->setOmitHeader(false);
     $request = $this->builder->build($query);
     $this->assertEquals('select?omitHeader=false&p1=v1&p2=v2&wt=json&json.nl=flat', urldecode($request->getUri()));
 }