refs #14: make a test case to debug

this bug depends on JDK version.
in my case, OSX default JDK has no problem. I need to use
1.6.0_51 instead.