assertEquals( "check # build agents", 1, service.getBuildAgents().size() );
assertEquals( "http://buildagent/xmlrpc", service.getBuildAgents().get( 0 ).getUrl() );
assertEquals( "linux", service.getBuildAgents().get( 0 ).getDescription() );
assertTrue( service.getBuildAgents().get( 0 ).isEnabled() );
BuildAgentGroupConfiguration buildAgentGroup = new BuildAgentGroupConfiguration();
buildAgentGroup.setName( "group-1" );
buildAgentGroup.addBuildAgent( buildAgent );
service.addBuildAgentGroup( buildAgentGroup );
service.store();
service.reload();
assertEquals( "check # build agent groups", 1, service.getBuildAgentGroups().size() );