} catch (IOException e) {
assertEquals("Should fail because incorrect response code was sent",
"HTTP_PARTIAL expected, received 200", e.getMessage());
}
((MockHttpURLConnection) rspy.openConnection()).setResponseCode(206);
is.seek(0);
try {
is.read();
fail("Exception should be thrown when 206 response is given "