Error when running test

Hi, I am involved in a Jruby on Rails app. My app works correctly,
however, I want to test a class.

The class in the model is something like:
class PeerToPeer::Peer
attr_accessor :login
attr_accessor :password
#constructor
def initialize(login=nil, password=nil)
@login = login
@password = password
end
def save()

end
end

And the test is something like:
require File.dirname(FILE) + ‘/…/…/test_helper’
class PeerToPeer::PeerTest < ActiveSupport::TestCase
def test_initialize_with_hash

end
end

Running this test raises an error:
C:/Documents and Settings/dfuentes/Mis
documentos/Proyectos/ITACA/itaca/config/environment.rb:66: undefined
method `include_class’ for main:Object (NoMethodError)

My environment (the crucial part) is:

Java libs

require ‘lib/jxta.jar’
require ‘lib/bcprov-jdk14.jar’
include_class ‘net.jxta.platform.NetworkManager’
begin
$network_manager =
NetworkManager.new(NetworkManager::ConfigMode::EDGE, “ITACANetwork”)
$network_manager.setConfigPersistent(true)
rescue IOException

end

So, what is the probem? I mean, the include_class does not raise an
error when running my app in the normal way.