} catch (IllegalArgumentException e) {
readerCompressed = null;
}
Assert.assertNull(readerCompressed);
GzipReader gzipReader = new GzipReader(new ByteArrayInputStream(new byte[] {42}));
readerCompressed = new WarcReaderCompressed();
try {
readerCompressed = new WarcReaderCompressed(gzipReader, -1);
} catch (IllegalArgumentException e) {
readerCompressed = null;
}
Assert.assertNull(readerCompressed);
readerCompressed = new WarcReaderCompressed();
try {
readerCompressed = new WarcReaderCompressed(gzipReader, 0);
} catch (IllegalArgumentException e) {
readerCompressed = null;
}
Assert.assertNull(readerCompressed);
gzipReader.close();
gzipReader = null;
readerCompressed = new WarcReaderCompressed();
try {
readerCompressed.getNextRecord();