* NOTE: This test will update the node.artifact.version to whatever is stated in the rules.
*/
private void assertRules( String msg, DependencyManagementStack stack, DependencyGraphNode node,
String expectedVersion, String expectedScope, String expectedExclusions[] )
{
Rules rules = stack.getRules( node );
assertNotNull( msg + " rules should not be null.", rules );
node.getArtifact().setVersion( rules.artifact.getVersion() );
assertEquals( msg + ": version", expectedVersion, rules.artifact.getVersion() );