### Question:
JsonToObjectBaseResponseParser implements ResponseDataParser<T> { @NonNull @Override public T getResponseData(@NonNull InputStream inputStream) throws IOException { try { return parseJsonToObject(jsonResponseParser.getResponseData(inputStream)); } catch (JSONException e) { throw new IOException(e); } } JsonToObjectBaseResponseParser();  JsonToObjectBaseResponseParser(@NonNull String charsetName); @VisibleForTesting  JsonToObjectBaseResponseParser(@NonNull JsonResponseParser jsonResponseParser); @NonNull @Override T getResponseData(@NonNull InputStream inputStream);  }### Answer:
@Test public void testSuccessfullyResponse() throws IOException { Object actualResult = target.getResponseData(inputStream); assertSame(EXPECTED_RESULT, actualResult); assertSame(JSON_OBJECT, target.latestJsonObject); }
@Test(expected = IOException.class) public void testIllegalJsonData() throws IOException { target.isJsonExceptionThrown = true; target.getResponseData(inputStream); }