Update docs and test file for java_packages var.