// Ensure we can use ClassPath resolution to get the tests package of the "current" build
final PomEquippedResolveStage resolver = Maven.resolver().loadPomFromFile("pom.xml");
File file = resolver.resolve("org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven:test-jar:tests:?")
.withoutTransitivity().asSingle(File.class);
new ValidationUtil("shrinkwrap-resolver-api-maven").validate(file);
// check content of resolved jar, it should contain given class
boolean containsTestClass = false;
JarFile jarFile = new JarFile(file);
Enumeration<JarEntry> entries = jarFile.entries();