// Path: src/test/java/com/redhat/rcm/version/testutil/TestProjectFixture.java
// public static void dumpModel( final Model model )
//     throws IOException
// {
//     final StringWriter writer = new StringWriter();
//     new MavenXpp3Writer().write( writer, model );
// 
//     System.out.println( "\n\n" + writer.toString() + "\n\n" );
// }
// 
// Path: src/test/java/com/redhat/rcm/version/testutil/TestProjectFixture.java
// public static File getResourceFile( final String path )
// {
//     final URL resource = Thread.currentThread()
//                                .getContextClassLoader()
//                                .getResource( path );
//     if ( resource == null )
//     {
//         fail( "Resource not found: " + path );
//     }
// 
//     return new File( resource.getPath() );
// }
// 
// Path: src/test/java/com/redhat/rcm/version/testutil/TestProjectFixture.java
// public static Model loadModel( final String path )
//     throws IOException
// {
//     final File pom = getResourceFile( path );
//     return loadModel( pom );
// }
// 
// Path: src/test/java/com/redhat/rcm/version/testutil/TestProjectFixture.java
// public static Set<Model> loadModels( final Set<File> poms )
//     throws VManException, IOException
// {
//     final Set<Model> models = new LinkedHashSet<Model>( poms.size() );
//     for ( final File pom : poms )
//     {
//         models.add( loadModel( pom ) );
//     }
// 
//     return models;
// }
// 
// Path: src/test/java/com/redhat/rcm/version/testutil/TestProjectFixture.java
// public static VersionManagerSession newVersionManagerSession( final File workspace, final File reports, final String suffix, final String modifier )
// {
//     return new SessionBuilder( workspace, reports ).withVersionSuffix( suffix )
//                                                    .withVersionModifier( modifier )
//                                                    .build();
// }


import static com.redhat.rcm.version.testutil.TestProjectFixture.dumpModel;
import static com.redhat.rcm.version.testutil.TestProjectFixture.getResourceFile;
import static com.redhat.rcm.version.testutil.TestProjectFixture.loadModel;
import static com.redhat.rcm.version.testutil.TestProjectFixture.loadModels;
import static com.redhat.rcm.version.testutil.TestProjectFixture.newVersionManagerSession;
import static org.apache.commons.io.FileUtils.copyDirectory;
import static org.apache.commons.io.FileUtils.copyFile;
import static org.apache.commons.io.FileUtils.readFileToString;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.Matchers.notNullValue;
import static org.hamcrest.Matchers.nullValue;
import static org.junit.Assert.assertThat;
import java.io.File;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import org.apache.maven.mae.project.key.FullProjectKey;
import org.apache.maven.model.Model;
import org.apache.maven.model.Parent;
import org.apache.maven.project.MavenProject;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import com.redhat.rcm.version.fixture.LoggingFixture;
import com.redhat.rcm.version.mgr.mod.VersionSuffixModder;
import com.redhat.rcm.version.mgr.session.VersionManagerSession;
import com.redhat.rcm.version.model.Project;
            dumpModel( model );

            return new Project( pom, model );
        }
        catch ( final Throwable t )
        {
            t.printStackTrace();
            throw t;
        }
    }

    private Map<FullProjectKey, Project> adjustMultiple( final String description, final String pomPath )
        throws Throwable
    {
        try
        {
            System.out.println( "ADJUSTING: " + description + "\nPOM: " + pomPath + "\nToolchain: " + TOOLCHAIN_PATH );

            final File srcPom = getResourceFile( TEST_POMS + pomPath );
            final String toolchain = getResourceFile( TOOLCHAIN_PATH ).getAbsolutePath();

            final File dir = srcPom.getParentFile();
            final String fname = srcPom.getName();

            final File outDir = new File( repo, dir.getName() ).getAbsoluteFile();
            outDir.mkdirs();

            copyDirectory( dir, outDir );
            final File pom = new File( outDir, fname ).getAbsoluteFile();

// Path: src/test/java/com/redhat/rcm/version/testutil/TestProjectFixture.java
// public static void dumpModel( final Model model )
//     throws IOException
// {
//     final StringWriter writer = new StringWriter();
//     new MavenXpp3Writer().write( writer, model );
// 
//     System.out.println( "\n\n" + writer.toString() + "\n\n" );
// }
// 
// Path: src/test/java/com/redhat/rcm/version/testutil/TestProjectFixture.java
// public static File getResourceFile( final String path )
// {
//     final URL resource = Thread.currentThread()
//                                .getContextClassLoader()
//                                .getResource( path );
//     if ( resource == null )
//     {
//         fail( "Resource not found: " + path );
//     }
// 
//     return new File( resource.getPath() );
// }
// 
// Path: src/test/java/com/redhat/rcm/version/testutil/TestProjectFixture.java
// public static Model loadModel( final String path )
//     throws IOException
// {
//     final File pom = getResourceFile( path );
//     return loadModel( pom );
// }
// 
// Path: src/test/java/com/redhat/rcm/version/testutil/TestProjectFixture.java
// public static Set<Model> loadModels( final Set<File> poms )
//     throws VManException, IOException
// {
//     final Set<Model> models = new LinkedHashSet<Model>( poms.size() );
//     for ( final File pom : poms )
//     {
//         models.add( loadModel( pom ) );
//     }
// 
//     return models;
// }
// 
// Path: src/test/java/com/redhat/rcm/version/testutil/TestProjectFixture.java
// public static VersionManagerSession newVersionManagerSession( final File workspace, final File reports, final String suffix, final String modifier )
// {
//     return new SessionBuilder( workspace, reports ).withVersionSuffix( suffix )
//                                                    .withVersionModifier( modifier )
//                                                    .build();
// }


// Path: src/test/java/com/redhat/rcm/version/mgr/VersionSuffixManagementTest.java
import static com.redhat.rcm.version.testutil.TestProjectFixture.dumpModel;
import static com.redhat.rcm.version.testutil.TestProjectFixture.getResourceFile;
import static com.redhat.rcm.version.testutil.TestProjectFixture.loadModel;
import static com.redhat.rcm.version.testutil.TestProjectFixture.loadModels;
import static com.redhat.rcm.version.testutil.TestProjectFixture.newVersionManagerSession;
import static org.apache.commons.io.FileUtils.copyDirectory;
import static org.apache.commons.io.FileUtils.copyFile;
import static org.apache.commons.io.FileUtils.readFileToString;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.Matchers.notNullValue;
import static org.hamcrest.Matchers.nullValue;
import static org.junit.Assert.assertThat;
import java.io.File;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import org.apache.maven.mae.project.key.FullProjectKey;
import org.apache.maven.model.Model;
import org.apache.maven.model.Parent;
import org.apache.maven.project.MavenProject;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import com.redhat.rcm.version.fixture.LoggingFixture;
import com.redhat.rcm.version.mgr.mod.VersionSuffixModder;
import com.redhat.rcm.version.mgr.session.VersionManagerSession;
import com.redhat.rcm.version.model.Project;

            dumpModel( model );

            return new Project( pom, model );
        }
        catch ( final Throwable t )
        {
            t.printStackTrace();
            throw t;
        }
    }

    private Map<FullProjectKey, Project> adjustMultiple( final String description, final String pomPath )
        throws Throwable
    {
        try
        {
            System.out.println( "ADJUSTING: " + description + "\nPOM: " + pomPath + "\nToolchain: " + TOOLCHAIN_PATH );

            final File srcPom = getResourceFile( TEST_POMS + pomPath );
            final String toolchain = getResourceFile( TOOLCHAIN_PATH ).getAbsolutePath();

            final File dir = srcPom.getParentFile();
            final String fname = srcPom.getName();

            final File outDir = new File( repo, dir.getName() ).getAbsoluteFile();
            outDir.mkdirs();

            copyDirectory( dir, outDir );
            final File pom = new File( outDir, fname ).getAbsoluteFile();

            final VersionManagerSession session = newVersionManagerSession( workspace, reports, SUFFIX );