Test  coverage support when using default_java_toolchain.
Test  coverage support when using default_java_toolchain.

Issue https://github.com/bazelbuild/bazel/issues/12793

Closes #12805.

PiperOrigin-RevId: 351142251

meteorcloudy/bazel,meteorcloudy/bazel,katre/bazel,ButterflyNetwork/bazel,cushon/bazel,twitter-forks/bazel,bazelbuild/bazel,cushon/bazel,twitter-forks/bazel,twitter-forks/bazel,katre/bazel,bazelbuild/bazel,cushon/bazel,cushon/bazel,perezd/bazel,cushon/bazel,twitter-forks/bazel,katre/bazel,cushon/bazel,bazelbuild/bazel,ButterflyNetwork/bazel,katre/bazel,perezd/bazel,bazelbuild/bazel,perezd/bazel,perezd/bazel,perezd/bazel,ButterflyNetwork/bazel,bazelbuild/bazel,perezd/bazel,meteorcloudy/bazel,ButterflyNetwork/bazel,meteorcloudy/bazel,katre/bazel,ButterflyNetwork/bazel,meteorcloudy/bazel,twitter-forks/bazel,perezd/bazel,meteorcloudy/bazel,katre/bazel,bazelbuild/bazel,ButterflyNetwork/bazel,meteorcloudy/bazel,twitter-forks/bazel,twitter-forks/bazel