public void testWithRuntimeMetaDataCompileModeForce() throws Exception {
URL rubyYml = getClass().getResource( "ruby-compile-mode-force.yml" );
MockDeploymentPhaseContext phaseContext = createPhaseContext( "torquebox.yml", rubyYml );
MockDeploymentUnit unit = phaseContext.getMockDeploymentUnit();
RubyRuntimeMetaData runtimeMetaData = new RubyRuntimeMetaData();
unit.putAttachment( RubyRuntimeMetaData.ATTACHMENT_KEY, runtimeMetaData );
deploy( phaseContext );
RubyRuntimeMetaData runtimeMetaData2 = unit.getAttachment( RubyRuntimeMetaData.ATTACHMENT_KEY );
assertSame( runtimeMetaData, runtimeMetaData2 );
assertEquals( RubyRuntimeMetaData.CompileMode.FORCE, runtimeMetaData.getCompileMode() );
}