@Test( expected = EnforcerRuleException.class )
public void testAllBannedWithSnapshotRepository()
    throws EnforcerRuleException
{

    MavenProject baseProject = createStandAloneProject();
    addRepository( baseProject, createSnapshotRepository( "repo", "http://example.com/repo" ) );
    setupSortedProjects( Collections.singletonList( baseProject ) );
    rule.execute( helper );
}