@Test
	public void testBothWays() throws IOException, InterruptedException {

		for(File org : testdataDirectory.listFiles()) {
			if(org.isFile()) {
				System.out.println("checking " + org.getName());
				byte[] originalData = TestUtil.readFully(org);
				
				ByteArrayOutputStream compressedData = new ByteArrayOutputStream();				
				SnzOutputStream sos = new SnzOutputStream(compressedData);
				sos.write(originalData);
				sos.close();
				
				ByteArrayOutputStream decompressedData = new ByteArrayOutputStream();
				SnzInputStream sis = new SnzInputStream(new ByteArrayInputStream(compressedData.toByteArray()));
				TestUtil.pipe(sis, decompressedData);
				Assert.assertArrayEquals(originalData, decompressedData.toByteArray());
			}
		}
		
	}