Java scripting TestCase implementation