throws Exception
{
// setup test data
final String testId = "dependency-now-provided";
final ArtifactHandler artifactHandler = (ArtifactHandler) lookup( ArtifactHandler.ROLE, "jar" );
ArtifactStub jarArtifact = new JarArtifactStub( getBasedir(), artifactHandler );
jarArtifact.setArtifactId( "lib-test" );
jarArtifact.setVersion( "1.0" );
ArtifactStub jarArtifact2 = new JarArtifactStub( getBasedir(), artifactHandler );
jarArtifact2.setArtifactId( "lib-test" );
jarArtifact2.setVersion( "1.0" );
jarArtifact2.setScope( Artifact.SCOPE_PROVIDED );
doTestTwiceWithUpdatedDependency( testId, new ArtifactStub[]{jarArtifact}, new ArtifactStub[]{jarArtifact2},
new String[]{"WEB-INF/lib/lib-test-1.0.jar"}, null );
}