refactor qunit for java