@ExtendWith({ RepositoryManagementTestExecutionListener.class,

              ArtifactManagementTestExecutionListener.class })
@Test
public void testInvalidArtifacts(@MavenRepository(repositoryId = REPOSITORY_ID_3, policy = SNAPSHOT)
                                 Repository repository,
                                 @MavenTestArtifact(repositoryId = REPOSITORY_ID_3,
                                                    id = GROUP_ID + ":" + ARTIFACT_ID,
                                                    versions = { "1",
                                                                 "1.0",
                                                                 "1.0.1",
                                                                 "1.0.1-alpha" })
                                 List<Path> invalidArtifactPaths)
        throws IOException
{
    for (Path invalidArtifactPath : invalidArtifactPaths)
    {
        RepositoryPath repositoryPath = (RepositoryPath) invalidArtifactPath.normalize();
        ArtifactCoordinates coordinates = RepositoryFiles.readCoordinates(repositoryPath);
        try
        {
            validator.validate(repository, coordinates);
            fail("Incorrectly validated artifact with version " + coordinates.getVersion());
        }
        catch (VersionValidationException e)
        {
        }
    }
}