File file = Maven.configureResolver().fromFile("target/settings/profiles/settings.xml")
.loadPomFromFile("target/poms/test-tests-classifier.xml")
.resolve("org.jboss.shrinkwrap.test:test-dependency-with-test-jar:jar:tests:1.0.0").withoutTransitivity()
.asSingleFile();
new ValidationUtil("test-dependency-with-test-jar").validate(file);
// check content of resolved jar, it should contain Field class
boolean containsFieldClass = false;
JarFile jarFile = new JarFile(file);
Enumeration<JarEntry> entries = jarFile.entries();