@Test
public void resolveProvidedDependency() throws Exception {
final String coordinates = "org.jboss.xnio:xnio-api:jar:3.1.0.Beta7";
final MavenStrategyStage mss = Maven.configureResolver().fromFile(SETTINGS_XML).resolve(coordinates);
final MavenFormatStage mfs = mss.using(STRATEGY);
final MavenResolvedArtifact info = mfs.asSingleResolvedArtifact();
Assert.assertNotNull(info);
final MavenArtifactInfo[] dependencies = info.getDependencies();
Assert.assertNotNull(dependencies);
// http://search.maven.org/remotecontent?filepath=org/jboss/xnio/xnio-api/3.1.0.Beta7/xnio-api-3.1.0.Beta7.pom
// there should be org.jboss.logging:jboss-logging and org.jboss.logmanager:jboss-logmanager as provided