@Test( expected = EnforcerRuleException.class )
public void shouldFailWithWrongDependencyInReactor()
    throws EnforcerRuleException, ExpressionEvaluationException
{

    MavenProject mp1 = createProjectParent();
    MavenProject mp2 = createProjectChild1( mp1 );
    Dependency goodDependency = createDependency( "org.junit", "junit", "2.0" );
    Dependency wrongDepFromReactor = createDependency( "org.apache.enforcer", "m2", "1.1-SNAPSHOT" );
    List<Dependency> depList = Arrays.asList( goodDependency, wrongDepFromReactor );
    when( mp2.getDependencies() ).thenReturn( depList );
    MavenProject mp3 = createProjectChild2( mp1 );
    List<MavenProject> theList = Arrays.asList( mp1, mp2, mp3 );
    setupSortedProjects( theList );
    rule.execute( helper );
    // intentionally no assertTrue() cause we expect getting an exception.
}