```ruby
require 'blather'
require 'countdownlatch'

Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f}

RSpec.configure do |config|
  config.mock_with :mocha
  config.filter_run :focus => true
  config.run_all_when_everything_filtered = true

  config.before(:each) { GirlFriday::WorkQueue.immediate! }
end

def parse_stanza(xml)
  Nokogiri::XML.parse xml
end
```

Fix checking for JRuby in the specs
user
```ruby
require 'blather'
require 'countdownlatch'

Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f}

RSpec.configure do |config|
  config.mock_with :mocha
  config.filter_run :focus => true
  config.run_all_when_everything_filtered = true

  config.before(:each) { GirlFriday::WorkQueue.immediate! }
end

def parse_stanza(xml)
  Nokogiri::XML.parse xml
end

def jruby?
  RUBY_PLATFORM =~ /java/
end
```
assistant