### Question:
DefaultContinuumConfiguration implements ContinuumConfiguration { public GeneralConfiguration getGeneralConfiguration() throws ContinuumConfigurationException { return this.generalConfiguration; }  void reload(); void save(); GeneralConfiguration getGeneralConfiguration(); void setGeneralConfiguration( GeneralConfiguration generalConfiguration ); void reload( File file ); void save( File file ); File getConfigurationFile(); void setConfigurationFile( File configurationFile ); static final String CONFIGURATION_FILE; }### Answer:
@Test public void testLoad() throws Exception { ContinuumConfiguration configuration = (ContinuumConfiguration) lookup( ContinuumConfiguration.class, "default" ); assertNotNull( configuration ); GeneralConfiguration generalConfiguration = configuration.getGeneralConfiguration(); assertNotNull( generalConfiguration ); assertNotNull( generalConfiguration.getBaseUrl() ); assertEquals( "http: assertEquals( new File( "myBuildOutputDir" ), generalConfiguration.getBuildOutputDirectory() ); assertTrue( generalConfiguration.isDistributedBuildEnabled() ); assertNotNull( generalConfiguration.getBuildAgents() ); org.apache.continuum.configuration.BuildAgentConfiguration buildAgentConfig = generalConfiguration.getBuildAgents().get( 0 ); assertEquals( "http: assertEquals( "linux", buildAgentConfig.getDescription() ); assertTrue( buildAgentConfig.isEnabled() ); assertNotNull( "agent group", generalConfiguration.getBuildAgentGroups() ); BuildAgentGroupConfiguration buildAgentGroupConfig = generalConfiguration.getBuildAgentGroups().get( 0 ); assertEquals( "group-agent-1", buildAgentGroupConfig.getName() ); BuildAgentConfiguration agentConfig = buildAgentGroupConfig.getBuildAgents().get( 0 ); assertEquals( "http: assertEquals( "linux", agentConfig.getDescription() ); }