@@ -0,0 +1,2629 @@
+package org.apache.maven.model.merge;%0A%0A%0A/*%0A * Licensed to the Apache Software Foundation (ASF) under one%0A * or more contributor license agreements.  See the NOTICE file%0A * distributed with this work for additional information%0A * regarding copyright ownership.  The ASF licenses this file%0A * to you under the Apache License, Version 2.0 (the%0A * %22License%22); you may not use this file except in compliance%0A * with the License.  You may obtain a copy of the License at%0A *%0A *  http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing,%0A * software distributed under the License is distributed on an%0A * %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY%0A * KIND, either express or implied.  See the License for the%0A * specific language governing permissions and limitations%0A * under the License.%0A */%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertNull;%0A%0Aimport java.util.Collections;%0A%0Aimport org.apache.maven.model.Model;%0Aimport org.apache.maven.model.Prerequisites;%0Aimport org.apache.maven.model.Profile;%0Aimport org.junit.Test;%0A%0Apublic class MavenModelMergerTest%0A%7B%0A    private MavenModelMerger modelMerger = new MavenModelMerger();%0A%0A    // Prerequisites are neither inherited nor injected%0A    @Test%0A    public void testMergeModel_Prerequisites()%0A    %7B%0A        Model parent = new Model();%0A        parent.setPrerequisites( new Prerequisites() );%0A        Model model = new Model();%0A        modelMerger.mergeModel_Prerequisites( model, parent, true, null );%0A        assertNull( model.getPrerequisites() );%0A        %0A        Prerequisites modelPrerequisites = new Prerequisites();%0A        modelPrerequisites.setMaven( %223.0%22 );%0A        model.setPrerequisites( modelPrerequisites );%0A        modelMerger.mergeModel_Prerequisites( model, parent, true, null );%0A        assertEquals( modelPrerequisites, model.getPrerequisites() );%0A    %7D%0A%0A    // Profiles are neither inherited nor injected%0A    @Test%0A    public void testMergeModel_Profiles()%0A    %7B%0A        Model parent = new Model();%0A        parent.setProfiles( Collections.singletonList( new Profile() ) );;%0A        Model model = new Model();%0A        modelMerger.mergeModel_Profiles( model, parent, true, null );%0A        assertEquals( 0, model.getProfiles().size() );%0A        %0A        Profile modelProfile = new Profile();%0A        modelProfile.setId( %22MODEL%22 );%0A        model.setProfiles( Collections.singletonList( modelProfile ) );%0A        modelMerger.mergeModel_Prerequisites( model, parent, true, null );%0A        assertEquals( Collections.singletonList( modelProfile ), model.getProfiles() );%0A    %7D%0A%0A%7D%0A

Add unittests for elements of Model which are neither inherited nor injected. Ignoring artifactId and modelVersion, these are required elements.