final MavenDependencyExclusion exclusion = MavenDependencies
.createExclusion("org.jboss.shrinkwrap.test:test-deps-f");
final MavenDependencyExclusion exclusion2 = MavenDependencies
.createExclusion("org.jboss.shrinkwrap.test:test-deps-g");
final MavenDependency dependency = MavenDependencies.createDependency(
"org.jboss.shrinkwrap.test:test-dependency-test:1.0.0", ScopeType.TEST, false, exclusion, exclusion2);
// FIXME in Maven 3.1.x, scope of resolved dependencies is compile
File[] files = Resolvers.use(MavenResolverSystem.class).loadPomFromFile("target/poms/test-parent.xml")
.addDependency(dependency).resolve().using(new AcceptScopesStrategy(ScopeType.TEST)).as(File.class);