}
public void testServerConfig() throws Exception
{
final Element element = this.getRootElement( "/correct/server.xml" );
final ServerConfig cfg = XML2Java.bind( element, ServerConfig.class );
final ServerConfig.Module[] modules = cfg.getModules();
Assert.assertTrue( modules.length == 3 );
Assert.assertEquals( modules[ 0 ].getInstanceName(), "TransportRepository" );
Assert.assertEquals( modules[ 0 ].getImplementationClass(), "com.test.module.TransportRepositoryImpl" );
Assert.assertEquals( modules[ 1 ].getInstanceName(), "InterceptorRepository" );