Java scripting TestCase implementation. Porting to Jdk 1.6