@ExtendWith({ RepositoryManagementTestExecutionListener.class,

              ArtifactManagementTestExecutionListener.class })
@Test
public void validateGroupIdCase(@MavenRepository(repositoryId = REPOSITORY_RELEASES)
                                Repository repository,
                                @MavenTestArtifact(repositoryId = REPOSITORY_RELEASES,
                                                   id = GROUP_ID + ":" + ARTIFACT_ID,
                                                   versions = { "1.0" })
                                Path path)
        throws Exception
{
    RepositoryPath repositoryPath = (RepositoryPath) path.normalize();
    ArtifactCoordinates coordinates = RepositoryFiles.readCoordinates(repositoryPath);
    assertThatExceptionOfType(LowercaseValidationException.class)
            .isThrownBy(() -> mavenArtifactIdLowercaseValidator.validate(repository, coordinates));
}