theNewServer.setName( "My New Server" );
theNewServer.setRmiPort( "21" );
theNewServer.setJmxPort( "10" );
ArrayList attributesList = new ArrayList();
attributesList.add( new ProjectMonitorAttribute( "Name", "projectName" ) );
theNewServer.setProjectAttributes( attributesList );
theServers.add( theNewServer );
CruisecontrolServerManager.resetServers();
CruisecontrolServerManager.saveServers( theServers, "test-files/server_config3.xml" );
theServers = CruisecontrolServerManager.getServers( "test-files/server_config3.xml" );
theNewServer = (CruisecontrolServer) theServers.get(0);
List projectAttributes = theNewServer.getProjectAttributes();
assertEquals( "Attributes not built", 1, projectAttributes.size() );
ProjectMonitorAttribute attribute = (ProjectMonitorAttribute) projectAttributes.get(0);
assertEquals( "Name not set", "Name", attribute.getName() );
assertEquals( "Method Name not set", "projectName", attribute.getMethodName() );
}