RackMetaData rackAppMetaData = new RackMetaData();
rubyAppMetaData.setRoot( this.root );
MockDeploymentPhaseContext phaseContext = createPhaseContext();
MockDeploymentUnit unit = phaseContext.getMockDeploymentUnit();
RubyRuntimeMetaData originalRuntimeMD = new RubyRuntimeMetaData();
originalRuntimeMD.setRuntimeType( RubyRuntimeMetaData.RuntimeType.BARE );
unit.putAttachment( RubyRuntimeMetaData.ATTACHMENT_KEY, originalRuntimeMD );
rubyAppMetaData.attachTo( unit );
rackAppMetaData.attachTo( unit );
deploy( phaseContext );
RubyRuntimeMetaData runtimeMetaData = unit.getAttachment( RubyRuntimeMetaData.ATTACHMENT_KEY );
assertNotNull( runtimeMetaData );
assertEquals( originalRuntimeMD, runtimeMetaData );
assertNull( runtimeMetaData.getBaseDir() );
assertEquals( RubyRuntimeMetaData.RuntimeType.BARE, runtimeMetaData.getRuntimeType() );
}