Add java test
Fix type name of wrappers
Simplify gen_return
Remove redundant capitalize
Refactor java jenerator