Make the test for dependency cycles less brittle.
Merge pull request #418 from cgruber/java8

Make the test for dependency cycles less brittle.