Add java_binary.deploy_env test case
Add java_binary.deploy_env test case

This adds a test case for `java_binary.deploy_env` per @lberki's request in
issue #6013.

Testing Done:
- `bazel test //src/test/shell/bazel:bazel_java_test --test_arg=test_build_with_deploy_env`

Closes #7403.

PiperOrigin-RevId: 236291519

meteorcloudy/bazel,cushon/bazel,aehlig/bazel,safarmer/bazel,davidzchen/bazel,twitter-forks/bazel,werkt/bazel,cushon/bazel,ulfjack/bazel,cushon/bazel,werkt/bazel,perezd/bazel,davidzchen/bazel,meteorcloudy/bazel,meteorcloudy/bazel,ulfjack/bazel,ButterflyNetwork/bazel,akira-baruah/bazel,katre/bazel,dslomov/bazel-windows,ButterflyNetwork/bazel,meteorcloudy/bazel,cushon/bazel,akira-baruah/bazel,twitter-forks/bazel,akira-baruah/bazel,ulfjack/bazel,werkt/bazel,katre/bazel,aehlig/bazel,ButterflyNetwork/bazel,meteorcloudy/bazel,werkt/bazel,safarmer/bazel,perezd/bazel,katre/bazel,twitter-forks/bazel,dslomov/bazel-windows,katre/bazel,bazelbuild/bazel,werkt/bazel,aehlig/bazel,davidzchen/bazel,aehlig/bazel,akira-baruah/bazel,dslomov/bazel-windows,bazelbuild/bazel,dslomov/bazel-windows,perezd/bazel,aehlig/bazel,bazelbuild/bazel,davidzchen/bazel,aehlig/bazel,dslomov/bazel-windows,cushon/bazel,meteorcloudy/bazel,davidzchen/bazel,dslomov/bazel,cushon/bazel,ulfjack/bazel,dslomov/bazel,ButterflyNetwork/bazel,safarmer/bazel,twitter-forks/bazel,akira-baruah/bazel,katre/bazel,dslomov/bazel,twitter-forks/bazel,dslomov/bazel,dslomov/bazel,davidzchen/bazel,davidzchen/bazel,akira-baruah/bazel,ButterflyNetwork/bazel,perezd/bazel,perezd/bazel,ulfjack/bazel,bazelbuild/bazel,safarmer/bazel,ButterflyNetwork/bazel,safarmer/bazel,safarmer/bazel,perezd/bazel,dslomov/bazel-windows,dslomov/bazel,katre/bazel,bazelbuild/bazel,ulfjack/bazel,twitter-forks/bazel,aehlig/bazel,dslomov/bazel,bazelbuild/bazel,ulfjack/bazel,twitter-forks/bazel,perezd/bazel,meteorcloudy/bazel,werkt/bazel