Replace grep by expect_log in java_integration_test#test_java_plugin
Replace grep by expect_log in java_integration_test#test_java_plugin

This fixes #1888: on my laptop (Mac Book Air), the test is highly
flaky (6-7 tests fails out of 10) but with this change, I observe
no failures. I cannot explains it but it seems to be some kind
of race in the stream handling.

--
Change-Id: I09eb9d5a1c8468c7a0299966a5ea20e7a5fc86f0
Reviewed-on: https://bazel-review.googlesource.com/c/6696/
MOS_MIGRATED_REVID=136459264

dslomov/bazel-windows,snnn/bazel,Asana/bazel,dropbox/bazel,dslomov/bazel-windows,bazelbuild/bazel,spxtr/bazel,ulfjack/bazel,werkt/bazel,damienmg/bazel,cushon/bazel,perezd/bazel,kchodorow/bazel-1,davidzchen/bazel,meteorcloudy/bazel,davidzchen/bazel,perezd/bazel,akira-baruah/bazel,safarmer/bazel,snnn/bazel,akira-baruah/bazel,perezd/bazel,meteorcloudy/bazel,Asana/bazel,bazelbuild/bazel,dslomov/bazel-windows,bazelbuild/bazel,LuminateWireless/bazel,damienmg/bazel,kchodorow/bazel,perezd/bazel,dropbox/bazel,mbrukman/bazel,werkt/bazel,twitter-forks/bazel,mikelikespie/bazel,mbrukman/bazel,juhalindfors/bazel-patches,davidzchen/bazel,cushon/bazel,cushon/bazel,mikelikespie/bazel,zhexuany/bazel,ulfjack/bazel,snnn/bazel,ButterflyNetwork/bazel,bazelbuild/bazel,akira-baruah/bazel,mbrukman/bazel,Asana/bazel,mbrukman/bazel,davidzchen/bazel,snnn/bazel,spxtr/bazel,LuminateWireless/bazel,cushon/bazel,Asana/bazel,ButterflyNetwork/bazel,hermione521/bazel,hermione521/bazel,kchodorow/bazel-1,variac/bazel,kchodorow/bazel,damienmg/bazel,davidzchen/bazel,katre/bazel,damienmg/bazel,safarmer/bazel,aehlig/bazel,bazelbuild/bazel,damienmg/bazel,spxtr/bazel,Asana/bazel,twitter-forks/bazel,LuminateWireless/bazel,variac/bazel,kchodorow/bazel,mikelikespie/bazel,damienmg/bazel,ulfjack/bazel,dropbox/bazel,katre/bazel,cushon/bazel,snnn/bazel,kchodorow/bazel-1,perezd/bazel,meteorcloudy/bazel,Asana/bazel,hermione521/bazel,juhalindfors/bazel-patches,twitter-forks/bazel,kchodorow/bazel,dslomov/bazel,ButterflyNetwork/bazel,safarmer/bazel,perezd/bazel,ulfjack/bazel,meteorcloudy/bazel,juhalindfors/bazel-patches,kchodorow/bazel-1,spxtr/bazel,kchodorow/bazel-1,cushon/bazel,twitter-forks/bazel,kchodorow/bazel,bazelbuild/bazel,akira-baruah/bazel,dslomov/bazel,dslomov/bazel-windows,safarmer/bazel,dslomov/bazel,LuminateWireless/bazel,dropbox/bazel,zhexuany/bazel,aehlig/bazel,katre/bazel,dslomov/bazel,katre/bazel,zhexuany/bazel,werkt/bazel,werkt/bazel,LuminateWireless/bazel,aehlig/bazel,variac/bazel,variac/bazel,meteorcloudy/bazel,damienmg/bazel,katre/bazel,hermione521/bazel,variac/bazel,snnn/bazel,aehlig/bazel,kchodorow/bazel,ButterflyNetwork/bazel,spxtr/bazel,variac/bazel,spxtr/bazel,mikelikespie/bazel,safarmer/bazel,dslomov/bazel,kchodorow/bazel-1,werkt/bazel,hermione521/bazel,zhexuany/bazel,twitter-forks/bazel,davidzchen/bazel,aehlig/bazel,aehlig/bazel,aehlig/bazel,werkt/bazel,snnn/bazel,ulfjack/bazel,mbrukman/bazel,meteorcloudy/bazel,juhalindfors/bazel-patches,juhalindfors/bazel-patches,ulfjack/bazel,safarmer/bazel,ButterflyNetwork/bazel,juhalindfors/bazel-patches,spxtr/bazel,dslomov/bazel,Asana/bazel,zhexuany/bazel,perezd/bazel,dropbox/bazel,twitter-forks/bazel,dslomov/bazel-windows,LuminateWireless/bazel,zhexuany/bazel,ButterflyNetwork/bazel,hermione521/bazel,mikelikespie/bazel,meteorcloudy/bazel,akira-baruah/bazel,twitter-forks/bazel,juhalindfors/bazel-patches,variac/bazel,davidzchen/bazel,mikelikespie/bazel,dslomov/bazel,ulfjack/bazel,dropbox/bazel,kchodorow/bazel,dslomov/bazel-windows,katre/bazel,akira-baruah/bazel,mbrukman/bazel