### Question:
MavenOneContinuumProjectBuilder extends AbstractContinuumProjectBuilder implements ContinuumProjectBuilder { public ContinuumProjectBuildingResult buildProjectsFromMetadata( URL url, String username, String password ) throws ContinuumProjectBuilderException { return buildProjectsFromMetadata( url, username, password, true, false ); }  ContinuumProjectBuildingResult buildProjectsFromMetadata( URL url, String username, String password ); ContinuumProjectBuildingResult buildProjectsFromMetadata( URL url, String username, String password,
                                                                     boolean recursiveProjects,
                                                                     boolean checkoutInSingleDirectory ); ContinuumProjectBuildingResult buildProjectsFromMetadata( URL url, String username, String password,
                                                                     boolean recursiveProjects,
                                                                     BuildDefinitionTemplate buildDefinitionTemplate,
                                                                     boolean checkoutInSingleDirectory ); ContinuumProjectBuildingResult buildProjectsFromMetadata( URL url, String username, String password,
                                                                     boolean recursiveProjects,
                                                                     BuildDefinitionTemplate buildDefinitionTemplate,
                                                                     boolean checkoutInSingleDirectory,
                                                                     int projectGroupId ); BuildDefinitionTemplate getDefaultBuildDefinitionTemplate(); static final String ID; }### Answer:
@Test public void testBuildingAProjectFromMetadataWithACompleteMaven1Pom() throws Exception { ContinuumProjectBuilder projectBuilder = lookup( ContinuumProjectBuilder.class, MavenOneContinuumProjectBuilder.ID ); BuildDefinition bd = new BuildDefinition(); bd.setDefaultForProject( true ); bd.setGoals( "clean:clean jar:install" ); bd.setBuildFile( "project.xml" ); bd.setType( ContinuumBuildExecutorConstants.MAVEN_ONE_BUILD_EXECUTOR ); bd.setTemplate( true ); BuildDefinitionService service = lookup( BuildDefinitionService.class ); BuildDefinitionTemplate bdt = new BuildDefinitionTemplate(); bdt.setName( "maven1" ); bd = service.addBuildDefinition( bd ); bdt = service.addBuildDefinitionTemplate( bdt ); bdt = service.addBuildDefinitionInTemplate( bdt, bd, false ); ContinuumProjectBuildingResult result = projectBuilder.buildProjectsFromMetadata( getTestFile( "src/test/resources/projects/maven-1.pom.xml" ).toURL(), null, null, false, bdt, false ); assertOnResult( result ); }
@Test public void testBuildingAProjectFromMetadataWithACompleteMaven1PomWithDefaultBuildDef() throws Exception { ContinuumProjectBuilder projectBuilder = lookup( ContinuumProjectBuilder.class, MavenOneContinuumProjectBuilder.ID ); BuildDefinitionService service = lookup( BuildDefinitionService.class ); ContinuumProjectBuildingResult result = projectBuilder.buildProjectsFromMetadata( getTestFile( "src/test/resources/projects/maven-1.pom.xml" ).toURL(), null, null, false, service.getDefaultMavenOneBuildDefinitionTemplate(), false ); assertOnResult( result ); }