DeflateCompressor implements Compressor { public void setInputBufferSize(int inputBufferSize) { this.inputBufferSize = inputBufferSize; }  boolean isNowrap(); void setNowrap(boolean nowrap); int getCompressionLevel(); void setCompressionLevel(int compressionLevel); int getStrategy(); void setStrategy(int strategy); int getInputBufferSize(); void setInputBufferSize(int inputBufferSize); int getOutputBufferSize(); void setOutputBufferSize(int outputBufferSize); boolean isCaching(); void setCaching(boolean caching); void release(); @Override void compress(InputStream uncompressedIn, OutputStream compressedOut);  }
@Test public void testSetInputBufferSize() throws IOException { Assert.assertNotEquals(17, compressor.getInputBufferSize()); compressor.setInputBufferSize(17); Assert.assertEquals(17, compressor.getInputBufferSize()); compressor.compress(rawContentIn, compressedContentOut); byte[] uncompressed = uncompressWithJavaInflater(compressor.isNowrap(), compressedContentOut.toByteArray()); Assert.assertArrayEquals(CONTENT, uncompressed); }