MavenReleaseVersionValidator implements MavenVersionValidator { @Override public boolean supports(Repository repository) { return MavenVersionValidator.super.supports(repository) && RepositoryPolicyEnum.RELEASE.getPolicy().equals(repository.getPolicy()); }  @PostConstruct @Override void register(); @Override String getAlias(); @Override String getDescription(); @Override boolean supports(Repository repository); @Override void validate(Repository repository,
                         ArtifactCoordinates coordinates); static final String ALIAS; static final String DESCRIPTION; }
@ExtendWith(RepositoryManagementTestExecutionListener.class) @Test public void shouldSupportRepository(@MavenRepository(repositoryId = MRVV_RELEASES) Repository repository) { assertThat(validator.supports(repository)).isTrue(); }