public void testNoOverflow() { ByteBuffer @in = ByteBuffer.allocate(10); ByteBuffer @out = ByteBuffer.allocate(10); @in.put(new byte[] { 1, 2, 3, 4, 5, 6, 7, 10 }); @in.flip(); CompressionCodec codec = new ZlibCodec(); Assert.Equal(false, codec.compress(@in, @out, null)); }