import java.io.*;

import org.codehaus.plexus.util.*;

String actual = FileUtils.fileRead( new File( basedir, "dependencyTree" ) );
String expected = FileUtils.fileRead( new File( basedir, "dependencyTree.expected" ) );

actual = actual.replaceAll( "[\n\r]+", "\n" );
expected = expected.replaceAll( "[\n\r]+", "\n" );

System.out.println( "Checking dependency tree..." );

if ( !actual.equals( expected ) )
{
    throw new Exception( "Unexpected dependency tree" );
}

return true;
