public void testLZMAUnarchive() throws Exception {
final File input = getFile("bla.tar.lzma");
final File output = new File(dir, "bla.tar");
final InputStream is = new FileInputStream(input);
try {
final CompressorInputStream in = new LZMACompressorInputStream(is);
FileOutputStream out = null;
try {
out = new FileOutputStream(output);
IOUtils.copy(in, out);
} finally {
if (out != null) {
out.close();
}
in.close();
}
} finally {
is.close();
}
}