From 315263e31f1b0261fd8abbcb86345f31e54218c2 Mon Sep 17 00:00:00 2001
From: Shalin Shekhar Mangar <shalin@apache.org>
Date: Wed, 5 Feb 2014 11:41:07 +0000
Subject: [PATCH] SOLR-5530: Fix forbidden-api-check failure

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1564712 13f79535-47bb-0310-9956-ffa450edef68
---
 .../solr/client/solrj/response/NoOpResponseParserTest.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/solr/solrj/src/test/org/apache/solr/client/solrj/response/NoOpResponseParserTest.java b/solr/solrj/src/test/org/apache/solr/client/solrj/response/NoOpResponseParserTest.java
index 5d28d6fddb6..6c39082088e 100644
--- a/solr/solrj/src/test/org/apache/solr/client/solrj/response/NoOpResponseParserTest.java
+++ b/solr/solrj/src/test/org/apache/solr/client/solrj/response/NoOpResponseParserTest.java
@@ -85,9 +85,9 @@ public class NoOpResponseParserTest extends SolrJettyTestBase {
     assertResponse(responseString);
   }
 
-  private void assertResponse(String responseString) {
+  private void assertResponse(String responseString) throws IOException {
     ResponseParser xmlResponseParser = new XMLResponseParser();
-    NamedList expectedResponse = xmlResponseParser.processResponse(IOUtils.toInputStream(responseString), "UTF-8");
+    NamedList expectedResponse = xmlResponseParser.processResponse(IOUtils.toInputStream(responseString, "UTF-8"), "UTF-8");
     List<SolrDocument> documentList = (List<SolrDocument>) expectedResponse.getAll("response").get(0);
     assertEquals(1, documentList.size());
     SolrDocument solrDocument = documentList.get(0);