completed 1st pass java generator.
gosh: that was easier than I thought.
added some basic tests.