Plugin pChild = new Plugin();
pChild.setGroupId( gid );
pChild.setArtifactId( aid );
pChild.setVersion( ver );
PluginExecution eChild = new PluginExecution();
eChild.setId( "normal" );
eChild.addGoal( "run" );
pChild.addExecution( eChild );
Build bChild = new Build();
bChild.addPlugin( pChild );
child.setBuild( bChild );
Model parent = makeBaseModel( "parent" );
Plugin pParent = new Plugin();
pParent.setGroupId( gid );
pParent.setArtifactId( aid );
pParent.setVersion( ver );
PluginExecution eParent = new PluginExecution();
eParent.setId( testId );
eParent.addGoal( "test" );
eParent.setInherited( Boolean.toString( false ) );
pParent.addExecution( eParent );
Build bParent = new Build();
bParent.addPlugin( pParent );