assertEquals(-1, rtn);
// Attempts to rewind should fail because the shielded resource is
// actually no longer available.
try {
in.reset();
fail("IOException was not thrown on reset of closed stream.");
} catch (IOException ioe) {
assertEquals(errorMsg, ioe.getMessage());
}
}