import java.io.*;
import org.codehaus.plexus.util.FileUtils;

String log = FileUtils.fileRead( new File( basedir, "build.log" ) );
String expected = "1 tests, 1 assertions, 0 failures, 0 errors";
if ( !log.contains( expected ) )
{
    throw new RuntimeException( "log file does not contain '" + expected + "'" );
}

File file = new File( basedir, "target/surefire-reports/TEST-runit-1.7.8--1.9.xml");
if ( !file.exists() )
{
    throw new RuntimeException( "file does not exists: '" + file.getAbsolutePath() + "'" );
}
file = new File( basedir, "target/surefire-reports/TEST-runit-1.7.13--1.9.xml");
if ( !file.exists() )
{
    throw new RuntimeException( "file does not exists: '" + file.getAbsolutePath() + "'" );
}
