RubyAppMetaData rubyAppMetaData = new RubyAppMetaData( "app_name");
rubyAppMetaData.setRoot( this.root );
MockDeploymentPhaseContext phaseContext = createPhaseContext();
MockDeploymentUnit unit = phaseContext.getMockDeploymentUnit();
RubyRuntimeMetaData existingRuntimeMD = new RubyRuntimeMetaData();
existingRuntimeMD.setRuntimeType( RubyRuntimeMetaData.RuntimeType.RACK );
unit.putAttachment( RubyRuntimeMetaData.ATTACHMENT_KEY, existingRuntimeMD );
rubyAppMetaData.attachTo( unit );
deploy( phaseContext );
RubyRuntimeMetaData runtimeMetaData = unit.getAttachment( RubyRuntimeMetaData.ATTACHMENT_KEY );
assertNotNull( runtimeMetaData );
assertEquals( existingRuntimeMD, runtimeMetaData );
assertNull( runtimeMetaData.getBaseDir() );
assertEquals( RubyRuntimeMetaData.RuntimeType.RACK, runtimeMetaData.getRuntimeType() );
}