public void testConcatenatedStreamsReadFully() throws Exception {
final File input = getFile("multiple.xz");
final InputStream is = new FileInputStream(input);
try {
final CompressorInputStream in =
new XZCompressorInputStream(is, true);
try {
assertEquals('a', in.read());
assertEquals('b', in.read());
assertEquals(0, in.available());
assertEquals(-1, in.read());
} finally {
in.close();
}
} finally {
is.close();
}
}