(#7) Add spec tests to glassfish::java class. Also updated class and
params to be easier to understand.