### Question:
Compressor { public byte[] compress(byte[] source) throws IOException { return compress(DEFAULTCOMPRESSIONTYPE, source); }  byte[] compress(byte[] source); byte[] compress(CompressionType type, byte[] source); byte[] decompress(byte[] source); byte[] decompress(CompressionType type, byte[] source);  }### Answer:
@Test public void testCompressionDoesCompress() throws IOException { Compressor compressor = new Compressor(); String uncompressed = "foobarbazamassivelylongstringofsomethingthatshouldcompressprettyfineeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"; log.info("uncompressed: " + uncompressed); byte[] compressed = compressor.compress(uncompressed.getBytes()); log.info("compressed: " + new String(compressed)); assertTrue(compressed.length <= uncompressed.length()); }