/**
* Tests that we can read non-partial content and return the expected contents.
*/
@Test(expectedExceptions = IOException.class)
public void testReadClosedStreamFail() throws Exception {
ConnectionHandler handler = new TestConnectionHandler(new CompleteContentConnection(m_content, true));
ContentRangeInputStream is = new ContentRangeInputStream(handler, m_testURL);
is.close(); // simulate an early close...
is.read(); // should fail!