LUCENE-5442: ant check-lib-versions will fail the build if there are unexpected version conflicts between direct and transitive dependencies.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1598538 13f79535-47bb-0310-9956-ffa450edef68
LUCENE-5708: fix these tests to also 'mimic' previous IWC.clone

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1598543 13f79535-47bb-0310-9956-ffa450edef68