Description
I reviewed the test itself and searched the mailing list archive for failures in the last 3 years via https://lists.apache.org/list.html?dev@lucene.apache.org:lte=3y:ShardParamsTest.testGetShardsTolerantAsBool (and found no examples there but did not look elsewhere) and based on that I think the test can be un-BadApple-d.
A small change
- assertTrue(exception.getMessage().startsWith("invalid boolean value: ")); + assertTrue(exception.getMessage(), exception.getMessage().startsWith("invalid boolean value: "));
might also be helpful. And ant beast ing of course too.