Hm. Didn't know that native library is not used in hudson testing.
My unit test was testing
(1) and (2) are skipped in hudson testing.
Hudson testReport showing
2010-04-01 00:15:52,882 WARN compress.TestCodec (TestCodec.java:testCodecInitWithCompressionLevel(373)) - testCodecInitWithCompressionLevel for native skipped: native libs not loaded
Testing manually, (2) and (3) failed without the patch and succeeded with the patch.